/* With You: the public website (home, doctors, talk). The app has its own
   stylesheets (design-system.css, family.css); nothing here reaches it. */

:root {
  color-scheme: light;
  --acc: #b85429; --acc-ink: #a84a22;
  --ink: #1d1d1f; --muted: #5f6366; --cream: #f7f5f0; --line: #e3e1da;
  --teal: #1e3a3a; --teal-7: #2d5555; --teal-1: #d8e5e5; --teal-05: #eef4f4;
  --gold-ink: #7a5c15; --gold-soft: #fff7e6;
  --wa: #dcf8c6; --wa-bg: #e5ddd5;
  --red: #b3261e; --red-soft: #fbe9e7;
}
* { box-sizing: border-box; }
body.site { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.site a { color: var(--acc-ink); }
.site img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

.site-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-wrap.narrow { max-width: 1000px; }

/* Top bar */
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; }
.site-nav .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--teal); text-decoration: none; }
.site-nav .links { display: flex; gap: 18px; font-size: 15px; align-items: center; }
.site-nav .links a { text-decoration: none; color: var(--teal); }
@media (max-width: 640px) { .site-nav .links a.hide-sm { display: none; } }

/* Signed-in switch: html.signed-in is set by the homepage's inline check */
.when-in { display: none; }
.signed-in .when-in { display: inline-block; }
.signed-in .when-out { display: none; }

/* Type */
section { padding: 56px 0; }
.site h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; color: var(--teal); margin: 0 0 14px; letter-spacing: -.01em; }
.site h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; color: var(--teal); margin: 0 0 10px; }
.site h3 { font-size: 19px; margin: 0 0 6px; color: var(--teal); }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
.small { font-size: 14px; color: var(--muted); }

/* Buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; font-weight: 650; font-size: 17px; padding: 14px 22px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.site .btn-primary { background: var(--acc); color: #fff; }
.site .btn-quiet { background: #fff; color: var(--teal); border: 1px solid var(--teal-1); }
.signed-in .btn.when-in { display: inline-block; }

/* Hero */
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 10px; }
.example-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding-top: 28px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.call { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.call .who { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.call p { margin: 0; font-style: italic; }
.answer { background: #fff; border: 1px solid var(--teal-1); border-left: 4px solid var(--teal); border-radius: 16px; padding: 16px 18px; }
.answer .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal); background: var(--teal-05); border-radius: 6px; padding: 1px 8px; margin-bottom: 8px; }
.answer p { margin: 0 0 10px; font-size: 16px; }
.fact { background: var(--teal-05); border-radius: 5px; padding: 0 4px; font-weight: 600; white-space: nowrap; }
.src { font-size: 12.5px; color: var(--muted); }
.doctor-line { font-size: 14px; color: var(--teal-7); font-weight: 600; margin: 0 !important; }

/* Cards and grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.grid.two-col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid.two-col { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.ticks { margin: 8px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 22px; margin: 0 0 8px; font-size: 15.5px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-7); font-weight: 700; }
.ticks li.soon::before { content: "○"; color: var(--gold-ink); }
.ticks li.soon em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--gold-soft); border-radius: 5px; padding: 0 6px; margin-left: 4px; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* WhatsApp sample */
.update { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
@media (max-width: 760px) { .update { grid-template-columns: 1fr; } }
.wa { background: var(--wa-bg); border-radius: 14px; padding: 14px; }
.wa .label { font-size: 12.5px; color: #4a4a4a; margin-bottom: 6px; }
.bubble { background: var(--wa); border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.6; white-space: pre-line; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }

/* Whole picture */
.picture { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 24px; align-items: start; }
@media (max-width: 860px) { .picture { grid-template-columns: 1fr; } }
.chart-card svg { width: 100%; height: auto; display: block; margin: 6px 0 8px; }

/* Clinic strip */
.clinic { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; background: var(--teal-05); border: 1px solid var(--teal-1); border-radius: 16px; padding: 20px 22px; margin-top: 20px; }
.clinic > div { flex: 1 1 420px; }
.clinic p { margin: 0; color: var(--muted); font-size: 16px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 10px; }
.faq summary { font-weight: 650; color: var(--teal); cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; margin-top: 22px; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }
.trust > div { padding-left: 14px; border-left: 3px solid var(--teal-1); }
.trust p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.emergency { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-top: 22px; }

/* Story */
.story { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
@media (max-width: 560px) { .story { grid-template-columns: 1fr; } }
.portrait-img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 65% 25%; }
.story p { margin: 0 0 10px; max-width: 38em; }
.story blockquote { margin: 0 0 12px; font-size: 19px; font-style: italic; color: var(--teal-7); }
.close { text-align: center; }
.close .ctas { justify-content: center; }
.close .lede { margin-left: auto; margin-right: auto; }

/* Doctors page */
.one { background: #fff; border: 1px solid var(--teal-1); border-radius: 18px; padding: 22px; margin-top: 8px; }
.one-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
@media (max-width: 760px) { .one-flow { grid-template-columns: 1fr; } .one-flow .arrow { transform: rotate(90deg); justify-self: center; } }
.one-in { background: var(--teal); color: #fff; border-radius: 14px; padding: 16px; font-weight: 650; text-align: center; }
.one-in small { display: block; font-weight: 400; opacity: .85; margin-top: 4px; }
.arrow { font-size: 28px; color: var(--teal-7); }
.outs { display: grid; gap: 8px; }
.outs div { background: var(--teal-05); border-radius: 10px; padding: 9px 12px; font-size: 15.5px; }
.outs b { color: var(--teal); }
.diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 860px) { .diff { grid-template-columns: 1fr; } }
.diff > div { border-left: 3px solid var(--teal-1); padding-left: 14px; }
.diff p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.flow span { background: var(--teal-05); color: var(--teal); border-radius: 8px; padding: 4px 10px; }
.legend { font-size: 14px; color: var(--muted); margin-top: 14px; }
.pilot { background: #fff; border: 1px solid var(--teal-1); border-radius: 16px; padding: 24px; }
.pilot p { margin: 0 0 14px; }
.sep { border-bottom: 1px solid var(--line); }

/* Talk */
.talk { padding: 80px 20px; text-align: center; }
.talk .lede { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 60px; font-size: 15px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.site-footer p { margin: 4px 0; }
