/* PanHealth — new website concept */
:root {
  --ink: #10302f;
  --ink-soft: #3d5957;
  --teal: #0e6b63;
  --teal-deep: #0a4f49;
  --mint: #e2f3ee;
  --mint-deep: #c5e6dd;
  --coral: #e8553a;
  --coral-soft: #fde9e3;
  --sun: #f6b73c;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #dfe6e2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
  --shadow: 0 10px 30px rgba(16, 48, 47, 0.08);
  --w: 1140px;
}
html { font-size: 17px; scroll-behavior: smooth; }
html.big { font-size: 20px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 22px; }
section { padding: 84px 0; }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; display: block; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; color: var(--ink-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 10px 14px; z-index: 99; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 247, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 88px; }
.brand img { height: 66px; width: auto; }
.menu { display: flex; gap: 20px; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
.menu a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.94rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-color: var(--coral); }
.tools { display: flex; gap: 10px; align-items: center; }
.aa, .burger { background: var(--white); border: 1px solid var(--line); border-radius: 999px; height: 40px; padding: 0 14px; font-weight: 700; color: var(--ink); cursor: pointer; font-size: 0.9rem; }
.aa[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.burger { display: none; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn.go { background: var(--coral); color: var(--white); }
.btn.go:hover { background: #d2472e; }
.btn.line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.line:hover { background: var(--ink); color: var(--white); }
.btn.sm { padding: 9px 18px; font-size: 0.92rem; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-pic { position: relative; }
.hero-pic img { border-radius: 28px; width: 100%; aspect-ratio: 4/3.4; object-fit: cover; box-shadow: var(--shadow); }
.toast { position: absolute; background: var(--white); border-radius: 16px; padding: 14px 18px; box-shadow: 0 14px 34px rgba(16, 48, 47, 0.18); font-size: 0.92rem; max-width: 260px; }
.toast b { display: block; }
.toast.a { left: -22px; bottom: 34px; }
.toast.b { right: -14px; top: 28px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); margin-right: 8px; }
.dot.warn { background: var(--coral); }
.page-hero { padding: 72px 0 36px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 18ch; }

/* Bands */
.band { background: var(--white); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.dark .lead, .dark .muted { color: #b9d2ce; }
.dark .kicker { color: var(--sun); }
.mintband { background: var(--mint); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.stats div { padding: 30px 28px 0 0; }
.stats b { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.4rem); display: block; line-height: 1; margin-bottom: 12px; color: var(--teal-deep); }
.dark .stats { border-color: rgba(255, 255, 255, 0.2); }
.dark .stats b { color: var(--sun); }

/* Cards and grids */
.grid { display: grid; gap: 22px; margin-top: 38px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card > :last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--teal); }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; margin-bottom: 16px; color: var(--teal-deep); }
.ico svg { width: 24px; height: 24px; }
.dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.dark .card p { color: #b9d2ce; }
.pic { background: var(--mint); border-radius: 12px; height: 180px; display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.pic img { max-height: 156px; max-width: 88%; object-fit: contain; mix-blend-mode: multiply; }
.pic.photo img { max-height: none; max-width: none; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.tag { align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--coral-soft); color: #a83a24; margin-bottom: 12px; }
.tag.ok { background: var(--mint); color: var(--teal-deep); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; }
.steps li { list-style: none; padding: 0 24px 0 0; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 2.6rem; color: var(--coral); display: block; line-height: 1; margin-bottom: 10px; }
.steps { padding: 0; }
.steps p { color: var(--ink-soft); font-size: 0.96rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.frame { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.frame img { margin: 0 auto; border-radius: 12px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 3px solid var(--coral); border-bottom: 3px solid var(--coral); transform: rotate(-45deg) translateY(-4px); }
.quote { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.2; max-width: 22ch; }
.quote span { color: var(--sun); }

/* Demo */
.demo { background: var(--ink); color: var(--white); border-radius: 30px; padding: 40px; margin-top: 40px; }
.demo-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; }
.clock { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.clock b { font-family: var(--serif); font-size: 2.6rem; line-height: 1; white-space: nowrap; }
.clock { flex-wrap: wrap; }
.clock span { color: var(--sun); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.box { background: #f2f4f3; border-radius: 22px; padding: 22px 18px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; box-shadow: inset 0 -10px 0 #d9dedc; }
.bay { background: var(--white); border-radius: 14px; padding: 14px 8px 12px; text-align: center; color: var(--ink); border: 3px solid transparent; transition: border-color 0.3s, opacity 0.3s; }
.bay .pill { width: 46px; height: 22px; border-radius: 12px; margin: 6px auto 10px; background: linear-gradient(90deg, var(--coral) 50%, #f4f0e8 50%); transition: opacity 0.4s, transform 0.4s; }
.bay small { display: block; color: var(--ink-soft); font-size: 0.74rem; }
.bay b { font-size: 0.9rem; }
.bay .led { width: 10px; height: 10px; border-radius: 50%; background: #cfd6d3; margin: 10px auto 0; }
.bay.due { border-color: var(--sun); }
.bay.due .led { background: var(--sun); box-shadow: 0 0 0 6px rgba(246, 183, 60, 0.3); animation: pulse 1.2s infinite; }
.bay.late { border-color: var(--coral); }
.bay.late .led { background: var(--coral); box-shadow: 0 0 0 6px rgba(232, 85, 58, 0.3); animation: pulse 0.8s infinite; }
.bay.taken .pill, .bay.missed .pill { opacity: 0; transform: translateY(-14px); }
.bay.taken .led { background: #2fae8f; }
.bay.missed { opacity: 0.55; }
.bay.missed .pill { opacity: 0.35; transform: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px rgba(246, 183, 60, 0.1); } }
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; min-height: 54px; }
.demo-actions .btn.line { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.demo-actions .btn.line:hover { background: var(--white); color: var(--ink); }
.demo-hint { color: #b9d2ce; font-size: 0.92rem; margin-top: 14px; min-height: 3em; }
.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feed { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 18px; min-height: 330px; }
.feed h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); margin-bottom: 4px; }
.feed .who { font-size: 0.85rem; color: #b9d2ce; margin-bottom: 14px; }
.feed ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { background: var(--white); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 0.9rem; animation: pop 0.35s ease-out; }
.feed li time { display: block; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); }
.feed li.quiet { background: rgba(255, 255, 255, 0.12); color: #dcebe8; }
.feed li.quiet time { color: #a9c6c1; }
.feed li.alert { background: var(--coral); color: var(--white); }
.feed li.alert time { color: #ffd9d0; }
.feed li.nudge { background: var(--sun); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.feed li.empty { color: #a9c6c1; font-size: 0.88rem; background: none; padding: 0; animation: none; }

/* Filters */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; cursor: pointer; font-size: 0.92rem; color: var(--ink); font-family: inherit; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
[hidden] { display: none !important; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.langs span { border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; }

/* Circle of care mock */
.circle { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.circle h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.person { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.av { width: 46px; height: 46px; border-radius: 50%; background: var(--mint-deep); display: grid; place-items: center; font-weight: 700; color: var(--teal-deep); }
.person small { color: var(--ink-soft); display: block; }
.badge { font-size: 0.74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); white-space: nowrap; }
.badge.warn { background: var(--coral-soft); color: #a83a24; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--coral); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); max-width: 70ch; }

/* Timeline */
.tl { margin-top: 36px; border-left: 2px solid var(--mint-deep); padding-left: 28px; display: grid; gap: 28px; max-width: 760px; }
.tl div { position: relative; }
.tl div::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); border: 3px solid var(--paper); }
.tl b { color: var(--teal); font-size: 0.85rem; letter-spacing: 0.08em; }
.tl p { color: var(--ink-soft); margin: 0; }
.tl h3 { margin: 2px 0 4px; }

/* Form */
form.contact { display: grid; gap: 16px; }
label { font-weight: 700; font-size: 0.92rem; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 13px 14px; border: 1px solid #b9c7c2; border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
textarea { min-height: 140px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CTA and footer */
.cta { background: var(--mint); border-radius: 30px; padding: 54px; display: grid; grid-template-columns: 1.3fr auto; gap: 30px; align-items: center; }
.cta h2 { margin: 0; }
footer { background: var(--ink); color: #b9d2ce; padding: 60px 0 30px; margin-top: 84px; font-size: 0.92rem; }
footer a { color: var(--white); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.foot h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .logo { background: var(--white); display: inline-block; padding: 8px 14px; border-radius: 12px; margin-bottom: 14px; }
.foot .logo img { height: 60px; }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 40px; padding-top: 22px; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 88px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--line); gap: 14px; }
  .menu.open { display: flex; }
  .tools { margin-left: auto; }
}
@media (max-width: 980px) {
  .hero-grid, .split, .demo-grid, .cta { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .toast.a { left: 10px; } .toast.b { right: 10px; }
}
@media (max-width: 640px) {
  section { padding: 58px 0; }
  .g2, .g3, .g4, .stats, .steps, .feeds, .two, .foot { grid-template-columns: 1fr; }
  .demo { padding: 24px 18px; border-radius: 22px; }
  .cta { padding: 34px 24px; }
  .feed { min-height: 0; }
  .toast { position: static; margin-top: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
