/* Dayna — daynahealth.com
   Palette: "Confident clinical teal" — mirrors the Dayna app's canonical
   tokens (morpheus src/constants/Colors.ts). Light mode only, like the app. */

:root {
  --background: #F8FBFC;
  --surface: #FFFFFF;
  --header: #EFF7F6;
  --card: #E9F6F5;
  --card-soft: #F7FDFC;
  --card-hover: #BFE6E1;
  --primary: #167A7F;
  --accent: #0F5D61;
  --warm: #F6D8C8;
  --warm-border: #E3A98A;
  --border: #CFE4E2;
  --border-active: #167A7F;
  --text: #12383D;
  --text-secondary: #4C686B;
  --text-tertiary: #78938F;
  --text-on-primary: #FFFFFF;
  --error: #B4483F;
  --success: #1E7A5C;

  --font-display: "Spline Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1040px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); }
a:hover { color: var(--primary); }

.skip-nav {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text); padding: 10px 16px; z-index: 100;
}
.skip-nav:focus { left: 0; }

/* ---- Header ---- */
.site-header {
  background: var(--header);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 14px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; letter-spacing: -0.02em;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.94rem; font-weight: 600; padding: 8px 12px; border-radius: 10px;
}
.site-nav a:hover { background: var(--card); color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-pill {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-tertiary); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  white-space: nowrap;
}

/* ---- Hero — artwork fills the whole band behind the text (cover, focus
   on the lower half of the illustration), white fade keeps text readable.
   Section height is set by the copy + padding, not the image. ---- */
.hero {
  background:
    linear-gradient(90deg, rgba(248, 251, 252, 0.85) 0%, rgba(248, 251, 252, 0.45) 34%, rgba(248, 251, 252, 0) 55%),
    url('/assets/hero-wide.jpg') center 55% / cover no-repeat,
    var(--background);
  padding: clamp(22px, 3vw, 36px) 0;
  position: relative;
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 560px; }
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(rgba(248, 251, 252, 0.88), rgba(248, 251, 252, 0.88)),
      url('/assets/hero-wide.jpg') center 55% / cover no-repeat,
      var(--background);
    padding: 44px 0;
  }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08; letter-spacing: -0.02em; margin: 4px 0 18px;
  max-width: 21ch;
}
.hero-desc {
  font-size: 1.06rem; line-height: 1.72; color: var(--text-secondary);
  max-width: 56ch; margin: 0 0 26px;
}
.hero-status { position: absolute; top: 4px; right: 24px; margin-bottom: 0; }
@media (max-width: 760px) {
  .hero-status { position: static; margin-bottom: 20px; }
}
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* Official store badges — dimmed "coming soon" until the app is published.
   At launch: wrap each badge in an <a> to its store listing and remove the
   opacity/grayscale below. */
.stores { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.store-badge { display: inline-block; opacity: 0.45; filter: grayscale(30%); }
.store-badge img { display: block; height: 52px; width: auto; }
.store-note { margin-top: 12px; font-size: 0.85rem; color: var(--text-secondary); }

/* ---- Sections ---- */
.section { padding: clamp(34px, 4.5vw, 54px) 0; background: var(--surface); }
.section-tint { background: var(--background); }
.section-care { background: var(--card); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 4px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--primary); }
.section h2 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08; letter-spacing: -0.02em; margin: 6px 0 12px;
}
.section-intro {
  color: var(--text-secondary); font-size: 1.04rem; line-height: 1.68;
  max-width: 62ch; margin: 0 0 32px;
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
}
.card h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  letter-spacing: -0.01em; margin: 0 0 9px;
}
.card p { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.62; margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: #E4F3F0; color: #1E8A80;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 22px;
}
.card:nth-child(2) .card-icon { background: #FCE7E1; color: #E07463; }
.card:nth-child(3) .card-icon { background: #E6EEF8; color: #5B8BC4; }
.card:nth-child(4) .card-icon { background: #EFEAF8; color: #6C5CA8; }
.card:nth-child(5) .card-icon { background: #E7F4EC; color: #1E7A5C; }

/* ---- "If you need support now" accordion ---- */
.support-now {
  background: #FDECE7; border: 1px solid #F6D3C9; border-radius: var(--radius);
  max-width: 720px; margin-top: 6px;
}
.support-now summary {
  cursor: pointer; padding: 16px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  color: #B8503E;
}
.support-now summary:hover { color: #97402F; }
.support-now[open] summary { border-bottom: 1px solid #F6D3C9; }
.support-now-body { padding: 12px 22px 18px; }
.support-now-body p { color: #5C433B; font-size: 0.97rem; line-height: 1.65; margin: 0 0 10px; }
.support-now-body p:last-child { margin-bottom: 0; }
.support-now-body a { color: #B8503E; font-weight: 600; }

/* ---- "What Dayna is not" / safety ---- */
.not-list { max-width: 62ch; color: var(--text-secondary); line-height: 1.7; padding-left: 1.2em; }
.not-list li { margin-bottom: 10px; }
.safety {
  background: #FDECE7; border: 1px solid #F6D3C9; border-radius: var(--radius);
  padding: 26px 30px; max-width: 820px; margin-top: 30px;
}
.safety h3 {
  font-family: var(--font-display); font-size: 1.08rem;
  letter-spacing: -0.01em; color: #B8503E; margin: 0 0 8px;
}
.safety p { color: #5C433B; font-size: 0.97rem; line-height: 1.65; margin: 0 0 8px; }
.safety p:last-child { margin-bottom: 0; }
.safety a { color: #B8503E; font-weight: 600; }

/* ---- Prose (legal / content pages) ---- */
.page-intro { padding: clamp(44px, 6vw, 72px) 0; }
.prose { max-width: 760px; }
.prose h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05; letter-spacing: -0.02em; margin: 4px 0 16px;
}
.prose h2 {
  font-family: var(--font-display); font-size: 1.45rem;
  letter-spacing: -0.015em; margin: 2em 0 0.6em;
}
.prose h3 { font-family: var(--font-display); font-size: 1.12rem; margin: 1.75em 0 0.5em; }
.prose p, .prose li { color: var(--text-secondary); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.meta-dates { font-size: 0.95rem; color: var(--text-tertiary); }
.doc-note { margin-top: 2.5em; color: var(--text-tertiary); font-size: 0.95rem; }

/* ---- Contact cards ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; margin-top: 8px; }
.contact-card {
  background: var(--card-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 26px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 1.08rem; margin: 0 0 6px; }
.contact-card p { color: var(--text-secondary); font-size: 0.94rem; margin: 0 0 12px; }
.contact-card a.email {
  font-weight: 700; color: var(--accent); text-decoration: none;
  word-break: break-all;
}
.contact-card a.email:hover { text-decoration: underline; }

/* ---- Footer ---- */
.site-footer {
  background: var(--text); color: #A9CAC8;
  padding: 44px 0 36px; font-size: 0.9rem; line-height: 1.7;
}
.site-footer a { color: #DCEBEA; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 400px; }
.footer-brand .name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: #FFFFFF; display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
}
.footer-brand .name img { width: 26px; height: 26px; border-radius: 7px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links strong {
  color: #FFFFFF; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 4px;
}
.legal-line {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 34px; padding-top: 22px; font-size: 0.82rem; color: #78938F;
}

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; }
}
