/* Home Plus landing page — clean, warm, healthcare-appropriate.
 * Palette matches the app SPA so the visual jump from landing → sign-in
 * feels continuous. */

:root {
  --ink:        #0f1720;
  --ink-2:      #33404d;
  --muted:      #6a7580;
  --line:       #e6e9ee;
  --line-2:     #f0f2f5;
  --surface:    #ffffff;
  --surface-2: #f7f9fb;
  --surface-3: #eef3f6;
  --accent:     #0b6b5f;   /* deep teal — same as the SPA */
  --accent-2:   #0e8a7b;
  --accent-tint:#d9ede9;
  --ok:         #1b7a3e;
  --ok-soft:    #dcefe1;
  --warn:       #8a5a00;
  --warn-soft:  #fbeecb;
  --radius:     10px;
  --radius-lg:  14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 12px; color: var(--ink-2); }
ul { padding-left: 0; margin: 0; list-style: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: var(--radius); font-size: 14px;
  font-weight: 500; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: all 0.12s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline  { background: white; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-ghost    { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Top nav ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: white; font-weight: 700; font-size: 18px;
}
.brand-name { font-size: 16px; letter-spacing: -0.01em; }
.nav {
  margin-left: 24px; display: flex; gap: 22px;
}
.nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.top-cta { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(1000px 500px at 50% -20%, var(--accent-tint) 0%, transparent 60%),
    linear-gradient(to bottom, var(--surface) 0%, var(--surface-2) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
}
/* When there's no product visual, center the copy at a comfortable width
   and let the CTA row anchor the middle of the section. */
.hero-inner.hero-centered {
  display: block; max-width: 760px; margin: 0 auto; text-align: center;
}
.hero-inner.hero-centered .lede { max-width: none; margin-left: auto; margin-right: auto; }
.hero-inner.hero-centered .hero-cta,
.hero-inner.hero-centered .hero-trust { justify-content: center; }
.eyebrow {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.lede { font-size: 17px; color: var(--ink-2); max-width: 540px; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-trust { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-ok { background: var(--ok); }

/* ---------- Band ---------- */
.band { background: var(--ink); color: white; padding: 32px 0; }
.band-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.band-k { font-size: 22px; font-weight: 700; color: white; letter-spacing: -0.01em; }
.band-l { font-size: 13px; color: #a5b3c1; margin-top: 4px; }

/* ---------- Sections ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Features ---------- */
.features { padding: 80px 0; background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface-2); border: 1px solid var(--line-2);
  padding: 22px; border-radius: var(--radius-lg);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-tint); color: var(--accent);
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- How ---------- */
.how { padding: 80px 0; background: var(--surface-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; }
.steps li { list-style: none; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: white; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p  { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- Pricing ---------- */
.pricing { padding: 80px 0; background: var(--surface); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.price-featured {
  border-color: var(--accent); border-width: 2px;
  box-shadow: 0 10px 32px rgba(11, 107, 95, 0.12);
}
.price-flag {
  position: absolute; top: -12px; left: 20px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.price h3 { margin-bottom: 12px; }
.price-tag { margin: 8px 0 6px; }
.price-num { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.price-unit { color: var(--muted); font-size: 14px; margin-left: 4px; }
.price-sub  { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.price-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.price-list li {
  padding-left: 22px; font-size: 14px; color: var(--ink-2); position: relative;
}
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.price-fine { text-align: center; font-size: 12px; color: var(--muted); margin-top: 32px; }

/* ---------- Compliance ---------- */
.compliance { padding: 80px 0; background: var(--ink); color: white; }
.compliance h2 { color: white; }
.compliance p { color: #c3ccd6; }
.compliance .eyebrow { background: rgba(255, 255, 255, 0.1); color: #a5d3cb; }
.compliance-inner {
  display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start;
}
.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.check-list li {
  padding-left: 26px; position: relative; font-size: 15px; color: #d5dce3;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #7fd3c1; font-weight: 700; font-size: 16px;
}
.compliance-side {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px; border-radius: var(--radius-lg);
}
.side-title { color: white; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.compliance-side .muted { color: #a5b3c1; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; background: var(--surface-2); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; max-width: 940px; margin: 0 auto; }
.faq details {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; padding-right: 28px;
}
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 20px; color: var(--muted); font-weight: 300;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- CTA ---------- */
.cta { padding: 72px 0; background: var(--surface); text-align: center; }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #a5b3c1; padding: 48px 0 24px; }
.foot .brand-name { color: white; }
.foot .muted { color: #6a7580; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-brand { display: flex; flex-direction: column; gap: 8px; }
.foot-brand .brand-name { font-size: 18px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-h { color: white; font-size: 13px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.foot-cols a { display: block; color: #a5b3c1; font-size: 14px; padding: 4px 0; }
.foot-cols a:hover { color: white; text-decoration: none; }
.foot-bottom { padding-top: 20px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .compliance-inner { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .steps, .band-inner, .foot-cols { grid-template-columns: 1fr; }
  .top-cta .btn-ghost { display: none; }
}
