/* Vie Care Support — calm, patient-facing static site.
   Colors refined from the original brand palette for WCAG AA contrast. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jakarta-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jakarta-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jakarta-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jakarta-700.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/playfair-600.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-700.woff2") format("woff2");
}

:root {
  --bg: 20 28% 97%;
  --fg: 200 22% 16%;
  --muted: 200 14% 32%;
  --primary: 0 72% 40%;
  --primary-hover: 0 74% 34%;
  --on-primary: 0 0% 100%;
  --card: 0 0% 100%;
  --border: 20 14% 86%;
  --soft: 20 22% 94%;
  --footer: 200 22% 16%;
  --footer-muted: 200 15% 80%;
  --radius: 1rem;
  --shadow: 0 8px 28px -10px hsl(200 22% 16% / 0.12);
  --shadow-soft: 0 4px 18px -8px hsl(200 22% 16% / 0.1);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --header-h: 4.75rem;
  --content: 68rem;
  --narrow: 40rem;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: hsl(var(--fg));
  background: hsl(var(--bg));
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: hsl(var(--primary)); text-underline-offset: 0.15em; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: hsl(var(--fg));
  margin: 0;
}
p { margin: 0; }
button, input { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: hsl(var(--primary));
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-fill { fill: currentColor; stroke: none; }

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}
.container.narrow { max-width: 46rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn .icon { width: 1.15rem; height: 1.15rem; }
.btn-primary {
  background: hsl(var(--primary));
  color: #fff;
  padding: 0.9rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: hsl(var(--primary-hover));
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: hsl(var(--fg));
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.btn-ghost:hover { background: hsl(var(--soft)); color: hsl(var(--fg)); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: hsl(var(--fg));
  text-decoration: none;
  font-weight: 500;
}
.phone-link:hover { color: hsl(var(--primary)); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--bg) / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-header { height: 4.5rem; width: auto; }
@media (min-width: 768px) {
  .logo-header { height: 5.5rem; }
  .header-inner { height: 5.25rem; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav-desktop a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--fg));
  text-decoration: none;
}
.nav-desktop a:hover { color: hsl(var(--primary)); }

.header-cta {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.menu-toggle {
  display: flex;
  background: none;
  border: 0;
  padding: 0.5rem;
  color: hsl(var(--fg));
  cursor: pointer;
}
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }

@media (min-width: 960px) {
  .nav-desktop, .header-cta { display: flex; }
  .menu-toggle { display: none; }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid hsl(var(--border));
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-weight: 600;
  padding: 0.7rem 0;
  color: hsl(var(--fg));
  text-decoration: none;
}
.nav-mobile .btn-primary,
.nav-mobile .phone-link { margin-top: 0.5rem; }
.nav-mobile .btn-primary { width: 100%; }

/* Hero */
.hero {
  padding: 3.25rem 0 2.5rem;
}
@media (min-width: 768px) {
  .hero { padding: 5.5rem 0 3.5rem; }
}
.hero-inner { max-width: 40rem; }
.hero h1 {
  font-size: 2.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3.15rem; }
}
.hero .lede {
  font-size: 1.125rem;
  color: hsl(var(--muted));
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .hero .lede { font-size: 1.25rem; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* Sections */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}
.section-soft { background: hsl(var(--soft)); }
.section-head {
  max-width: 38rem;
  margin: 0 0 2.25rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .section-head h2 { font-size: 2.25rem; }
}
.section-head p { color: hsl(var(--muted)); }

/* State finder */
.state-finder {
  position: relative;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .state-finder { padding: 1.5rem 1.6rem 1.65rem; }
}
.state-finder label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.45rem;
}
.state-finder input[type="text"] {
  width: 100%;
  font-size: 1.0625rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.7rem;
  background: hsl(var(--bg));
  color: hsl(var(--fg));
}
.state-finder input[type="text"]::placeholder { color: hsl(var(--muted)); opacity: 0.8; }
.state-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.7rem;
  background: #fff;
  max-height: 16rem;
  overflow: auto;
  box-shadow: var(--shadow);
}
.state-list[hidden] { display: none; }
.state-list li { margin: 0; }
.state-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  color: hsl(var(--fg));
  font-size: 1rem;
  cursor: pointer;
}
.state-option:hover,
.state-option.is-active { background: hsl(var(--soft)); }
.state-option .abbr {
  color: hsl(var(--muted));
  font-weight: 600;
  margin-left: 0.4rem;
  font-size: 0.875rem;
}
.state-result {
  margin-top: 1rem;
  min-height: 1.25rem;
}
.state-result .yes,
.state-result .no {
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
}
.state-result .yes {
  background: hsl(150 30% 94%);
  color: hsl(150 25% 18%);
}
.state-result .no {
  background: hsl(20 30% 95%);
  color: hsl(var(--fg));
}
.state-result p { margin: 0 0 0.85rem; }
.state-result .yes p:last-child,
.state-result .no p:last-child { margin-bottom: 0; }
.state-result a.email { color: hsl(var(--primary)); font-weight: 600; }

.state-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.state-pill {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsl(var(--fg));
  line-height: 1.2;
  cursor: pointer;
}
.state-pill:hover { border-color: hsl(var(--primary) / 0.45); color: hsl(var(--primary)); }
.state-caption {
  color: hsl(var(--muted));
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

/* Who we help / pills */
.who-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .who-grid { grid-template-columns: 18rem 1fr; gap: 2.5rem; align-items: start; }
}
.who-ages h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.who-ages p { color: hsl(var(--muted)); }
.condition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  font-weight: 500;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-soft);
}
.pill .icon { width: 1.1rem; height: 1.1rem; color: hsl(var(--primary)); }
.pill-more {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: hsl(var(--primary) / 0.08);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--primary));
}

/* Services */
.services {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 768px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 46rem; }
}
.service {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-icon .icon { width: 1.35rem; height: 1.35rem; }
.service h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.service p { color: hsl(var(--muted)); font-size: 1rem; }

/* How it works */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
.step { position: relative; padding-top: 0.25rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { color: hsl(var(--muted)); }


/* FAQ */
.faq-list { max-width: 42rem; }
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  display: block;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
  opacity: 0.65;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-item .faq-answer {
  color: hsl(var(--muted));
  padding: 0 2rem 1.15rem 0;
}

/* Contact / close */
.contact-panel { text-align: left; }
.contact-panel .lede-sm {
  color: hsl(var(--muted));
  margin: 0.75rem 0 1.35rem;
  max-width: 32rem;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  color: hsl(var(--muted));
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: hsl(var(--fg));
  text-decoration: none;
  font-weight: 500;
}
.contact-links a:hover { color: hsl(var(--primary)); }
.crisis {
  margin-top: 1.75rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid hsl(var(--primary));
  color: hsl(var(--fg));
  font-size: 0.95rem;
  background: hsl(var(--primary) / 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  max-width: 36rem;
}

/* Footer */
.site-footer {
  background: hsl(var(--footer));
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.25rem; }
}
.site-footer h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.9rem;
}
.footer-blurb, .footer-states {
  color: hsl(var(--footer-muted));
  font-size: 0.95rem;
}
.footer-states { margin-top: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.55rem; }
.site-footer a {
  color: hsl(var(--footer-muted));
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid hsl(0 0% 100% / 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--footer-muted));
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.made-with { display: flex; align-items: center; gap: 0.4rem; }
.made-with .icon { width: 0.95rem; height: 0.95rem; color: hsl(0 70% 70%); fill: hsl(0 70% 70%); }
.footer-crisis { color: hsl(var(--footer-muted)); }

/* Legal */
.legal-page {
  padding: 2.5rem 0 4rem;
}
.legal-wrap { max-width: 42rem; margin: 0 auto; }
.legal-page h1 { font-size: 2.15rem; margin: 0 0 1rem; }
.legal-page .updated,
.legal-page .lede-legal {
  color: hsl(var(--muted));
  margin-bottom: 1.5rem;
}
.legal-page section { margin-bottom: 1.75rem; }
.legal-page h2 { font-size: 1.35rem; font-weight: 600; margin: 0 0 0.7rem; }
.legal-page p, .legal-page li { color: hsl(var(--fg)); }
.legal-page p + p { margin-top: 0.7rem; }
.legal-page ul { padding-left: 1.3rem; margin: 0.6rem 0 0; }
.legal-page li + li { margin-top: 0.4rem; }
.legal-page a { color: hsl(var(--primary)); }
.legal-page a:hover { text-decoration: underline; }

.hipaa-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
@media (min-width: 768px) {
  .hipaa-cards { grid-template-columns: 1fr 1fr; }
}
.hipaa-card {
  background: hsl(var(--primary) / 0.05);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--primary) / 0.08);
}
.hipaa-card .icon { width: 1.75rem; height: 1.75rem; color: hsl(var(--primary)); margin-bottom: 0.75rem; }
.hipaa-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.hipaa-card p { color: hsl(var(--muted)); font-size: 0.95rem; }

/* Book */
.book-main { padding: 3rem 0 4.5rem; }
.book-card {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 2rem;
  max-width: 36rem;
}
@media (min-width: 768px) {
  .book-card { padding: 2.1rem 2rem 2.25rem; }
}
.book-card h1 { font-size: 2rem; margin-bottom: 0.7rem; }
@media (min-width: 768px) {
  .book-card h1 { font-size: 2.35rem; }
}
.book-intro { color: hsl(var(--muted)); margin-bottom: 1.4rem; }
.book-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }

.book-states { margin-top: 2.5rem; }
.book-states .section-head p { color: hsl(var(--muted)); margin-top: 0.4rem; }
