/* =============================================================
   Health Assistant Link — styles
   Dark, high-tech, friendly. Pink→red gradient accent.
   ============================================================= */

:root {
  --bg: #08080a;
  --bg-soft: #0e0e12;
  --card: #121218;
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(255, 90, 110, 0.35);
  --text: #f3f3f5;
  --text-dim: #a6a6b0;
  --text-faint: #6e6e78;

  --pink: #ff4d8d;
  --red: #ff5a3c;
  --grad: linear-gradient(120deg, #ff4d8d 0%, #ff5b6b 55%, #ff5a3c 100%);

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow + faint circuit grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(560px 420px at 78% -8%, rgba(255, 77, 141, 0.16), transparent 60%),
    radial-gradient(620px 520px at 8% 4%, rgba(255, 90, 60, 0.12), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 77, 141, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(255, 77, 141, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--card-border-hover); background: rgba(255, 255, 255, 0.07); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 10, 0.6);
  border-bottom: 1px solid var(--card-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.12); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav .btn { padding: 9px 18px; font-size: 0.9rem; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
  margin: 0 0 14px;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 620px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; text-align: center; }
.hero-icon {
  width: 116px; height: 116px; margin: 0 auto 30px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(255, 77, 141, 0.3);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; }
.hero .sub {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 660px;
  margin: 22px auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-links { margin-top: 26px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.hero-links a { color: var(--text-dim); font-size: 0.95rem; display: inline-flex; gap: 7px; align-items: center; transition: color 0.2s; }
.hero-links a:hover { color: var(--text); }

/* trust chips */
.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  font-size: 0.9rem; color: var(--text-dim);
}
.chip b { color: var(--text); font-weight: 600; }

/* ---------- Setup steps (screenshot-led) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  align-items: start;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; gap: 44px; } }

.step { position: relative; text-align: left; }

/* number chip above the title */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  font-weight: 700; font-size: 0.85rem; margin-bottom: 14px;
  background: rgba(255, 77, 141, 0.12);
  border: 1px solid rgba(255, 77, 141, 0.3);
  color: var(--pink);
}

/* screenshot area — fixed height so titles align across columns */
.step-shot {
  height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
}
.step-shot img {
  max-height: 230px;
  max-width: 100%;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s var(--ease);
}
.step:hover .step-shot img { transform: translateY(-5px); }
.step-shot--empty { align-items: center; opacity: 0.85; }

.step h3 { font-size: 1.22rem; margin-bottom: 10px; line-height: 1.25; }
.step p { color: var(--text-dim); margin: 0; }
.step p a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.step p a:hover { color: #ff7aa6; }

/* ---------- Recommendations / quick guide ---------- */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 760px) { .tips { grid-template-columns: 1fr; } }
.tip {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tip:hover { transform: translateY(-4px); border-color: var(--card-border-hover); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.tip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(255, 77, 141, 0.12);
  border: 1px solid rgba(255, 77, 141, 0.3);
  color: var(--pink);
}
.tip h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tip p { color: var(--text-dim); margin: 0; }
.tip p strong { color: var(--text); font-weight: 600; }
.tips-note { color: var(--text-faint); font-size: 0.98rem; margin-top: 24px; max-width: 640px; }

/* ---------- Testimonial ---------- */
.testimonial { text-align: center; }
.quote {
  max-width: 760px; margin: 0 auto;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 500; line-height: 1.4; letter-spacing: -0.01em;
}
.quote .mark { font-size: 2.4em; line-height: 0; vertical-align: -0.35em; color: var(--pink); opacity: 0.5; }

/* ---------- Stories ---------- */
.stories-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.stories-card .copy { max-width: 560px; }

/* ---------- Helpful links ---------- */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .links-grid { grid-template-columns: 1fr; } }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--card-border-hover); background: var(--bg-soft); }
.link-card .arrow { color: var(--text-faint); transition: transform 0.2s var(--ease), color 0.2s; }
.link-card:hover .arrow { transform: translateX(3px); color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--card-border); padding: 64px 0 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer p { color: var(--text-dim); margin: 0 0 6px; max-width: 320px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text-dim); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--card-border); color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Stories page ---------- */
.stories-hero { padding: 80px 0 40px; }
.stories-hero .section-title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.stories-section { padding-top: 24px; }
.stories-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .stories-list { grid-template-columns: 1fr; } }
.stories-list:empty { display: none; }

/* A story card (use when articles are added) */
.story-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.story-card:hover { transform: translateY(-4px); border-color: var(--card-border-hover); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.story-card h3 { font-size: 1.35rem; margin-bottom: 12px; line-height: 1.25; }
.story-card p { color: var(--text-dim); margin: 0 0 18px; }
.story-tag {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700;
  color: var(--pink);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px !important;
  background: rgba(255, 77, 141, 0.1);
  border: 1px solid rgba(255, 77, 141, 0.28);
}
.story-card .read-more { color: var(--pink); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.story-card .read-more .arrow { transition: transform 0.2s var(--ease); }
.story-card:hover .read-more .arrow { transform: translateX(4px); }

/* ---------- Article (single story) ---------- */
.article { padding: 56px 0 96px; }
.article-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
.article .eyebrow { margin-top: 28px; }
.article-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 22px; line-height: 1.12; }
.article-lead {
  font-size: 1.2rem; line-height: 1.6; color: var(--text);
  margin: 0 0 12px; padding-bottom: 32px;
  border-bottom: 1px solid var(--card-border);
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  color: var(--text-faint); font-size: 0.95rem; margin: -8px 0 26px;
}
.article-meta .dot { opacity: 0.6; }
.article-meta time { color: var(--text-dim); }

.takeaways {
  margin: 32px 0 8px;
  padding: 26px 28px;
  background: rgba(255, 77, 141, 0.06);
  border: 1px solid rgba(255, 77, 141, 0.22);
  border-radius: var(--radius-lg);
}
.takeaways h2 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--pink); margin: 0 0 14px;
}
.takeaways ul { margin: 0; padding-left: 4px; list-style: none; }
.takeaways li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--text); font-size: 1rem; line-height: 1.6;
}
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--grad);
}

.article-body { margin-top: 32px; }
.article-body p { color: var(--text-dim); font-size: 1.08rem; line-height: 1.75; margin: 0 0 22px; }
.article-body h2 { font-size: 1.5rem; margin: 44px 0 16px; }
.article-body ul { color: var(--text-dim); font-size: 1.08rem; line-height: 1.7; margin: 0 0 22px; padding-left: 4px; list-style: none; }
.article-body ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.article-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
}

.faq { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--card-border); }
.faq > h2 { font-size: 1.6rem; margin-bottom: 24px; }
.faq-item { margin-bottom: 24px; }
.faq-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-dim); font-size: 1.04rem; line-height: 1.7; margin: 0; }

.article-cta {
  margin-top: 52px; padding: 32px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); text-align: center;
}
.article-cta p { color: var(--text); font-size: 1.1rem; font-weight: 500; margin: 0 0 20px; }
.article-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.article .back-link:last-child { margin-top: 40px; }

/* Empty state */
.stories-empty {
  text-align: center;
  max-width: 520px;
  margin: 20px auto 0;
  padding: 56px 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}
.stories-empty svg { margin: 0 auto 22px; }
.stories-empty h2 { font-size: 1.5rem; margin-bottom: 10px; }
.stories-empty p { color: var(--text-dim); margin: 0 auto 26px; max-width: 360px; }
.empty-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-icon { animation: none; }
  * { scroll-behavior: auto; }
}
