/* Round 1 additions: dropdown nav, theme toggle, WhatsApp button, ticker,
   orbit hero, pricing and solutions pages. Loaded after styles.css. */

/* ---------- Nav: tools, dropdown, theme toggle ---------- */
.nav-tools { display: flex; align-items: center; gap: 4px; }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: background 0.2s, color 0.2s; }
.theme-toggle:hover { background: var(--bg-alt); color: var(--ink); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
}
.dd { position: relative; }
.dd-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.dd-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.dd-btn:hover, .dd-btn[aria-expanded="true"], .dd-btn[aria-current] { color: var(--ink); }
.dd-btn[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
.dd-menu { position: absolute; top: calc(100% + 16px); left: 50%; transform: translate(-50%, -6px); min-width: 270px; padding: 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd-btn[aria-expanded="true"] + .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-menu a { display: flex; flex-direction: column; padding: 11px 14px; border-radius: 13px; color: var(--ink) !important; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--bg-alt); }
.dd-menu strong { font-size: 15px; font-weight: 600; }
.dd-menu small { font-size: 13px; color: var(--ink-2); }

@media (min-width: 821px) { .nav-links { margin-left: auto; margin-right: 16px; } }

/* ---------- Floating WhatsApp ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15); transition: transform 0.25s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Capability strip (static) ---------- */
.strip { list-style: none; margin: 0; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip li { font-size: 15px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 36px; }
.strip li:not(:last-child)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

/* ---------- Orbit hero ---------- */
.hero-split .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; text-align: left; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-split .display { margin-inline: 0; max-width: 11ch; }
.hero-split .lead { margin: 24px 0 34px; max-width: 40ch; }
.hero-split .actions { justify-content: flex-start; }
.pill.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.patient-link { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.patient-link a { color: var(--blue); }
.node-label small { font-size: 11px; font-weight: 500; color: var(--ink-2); }
.hero-split .hero-title { font-size: clamp(38px, 5.4vw, 66px); max-width: 14ch; }
.orbit { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin-inline: auto; }
.orbit .rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit .ring { fill: none; stroke: var(--line); stroke-width: 0.35; stroke-dasharray: 1.2 1.6; }
.orbit .spoke { stroke: var(--c); stroke-width: 0.45; stroke-dasharray: 1.6 1.6; opacity: 0.55; animation: dash 6s linear infinite; }
.orbit .live { stroke: var(--localdawai); stroke-width: 0.9; stroke-linecap: round; }
@keyframes dash { to { stroke-dashoffset: -6.4; } }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24%; aspect-ratio: 1; border-radius: 26%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-content: center; justify-items: center; gap: 6px; }
.orbit-core .mark { width: 42%; height: auto; }
.orbit-core b { font-size: clamp(11px, 1.6vw, 15px); letter-spacing: -0.02em; }
.orbit-core small { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); margin-top: -4px; }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 9px; animation: float 6s ease-in-out infinite; animation-delay: var(--d, 0s); color: var(--ink); }
.node-ico { width: clamp(50px, 13vw, 66px); aspect-ratio: 1; border-radius: 28%; background: var(--c); display: grid; place-items: center; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.4); transition: transform 0.25s; }
.node:hover .node-ico { transform: scale(1.08); }
.node-ico svg { width: 46%; height: 46%; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node-label { display: flex; flex-direction: column; align-items: center; line-height: 1.25; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 14px; text-align: center; background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.15); white-space: nowrap; }
.orbit-tag { position: absolute; left: 80%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 980px; background: color-mix(in srgb, var(--localdawai) 14%, var(--bg)); color: var(--localdawai-t); border: 1px solid color-mix(in srgb, var(--localdawai) 35%, transparent); white-space: nowrap; }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 7px)); } }
.collage-section { text-align: center; padding: clamp(56px, 8vw, 96px) 0 0; overflow: hidden; }
.collage-section .collage { margin-top: clamp(32px, 5vw, 56px); }

/* ---------- Pricing & solutions ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.jump a { padding: 8px 18px; border-radius: 980px; background: var(--bg-alt); font-size: 15px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.jump a:hover { background: var(--ink); color: var(--bg); }
.scoped .btn:not(.btn-ghost) { background: var(--accent-strong); }
.scoped .btn-ghost { color: var(--accent-t); border-color: var(--accent-t); }
.scoped .btn-ghost:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.scoped .price.featured { border-color: var(--accent-strong); }
.scoped .price .badge { background: var(--accent-strong); }
.plan-head { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.plan-head .node-ico { width: 56px; box-shadow: none; }
.plan-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.plan-head p { margin: 4px 0 0; color: var(--ink-2); }
.plan-head .link-arrow { margin-left: auto; font-size: 17px; color: var(--accent-t); }
.quote-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.quote-card h3 { font-size: 26px; margin-bottom: 10px; }
.quote-card p { color: var(--ink-2); margin: 0; }
.quote-card ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.quote-card li { padding: 9px 0; border-top: 1px solid var(--line); }
.quote-card .actions { margin-top: 22px; }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.audience + .audience { margin-top: clamp(56px, 8vw, 104px); }
.audience.flip > :first-child { order: 2; }
.audience h2 { margin-bottom: 16px; }
.audience p { color: var(--ink-2); font-size: 19px; }
.stack { display: grid; gap: 14px; }
.mini { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform 0.25s, box-shadow 0.25s; }
.section.alt .mini { border-color: transparent; }
.mini:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.mini .node-ico { width: 48px; box-shadow: none; flex: none; }
.mini h3 { font-size: 18px; margin-bottom: 2px; }
.mini p { font-size: 15px; margin: 0; color: var(--ink-2); }
.mini::after { content: "\203A"; margin-left: auto; font-size: 26px; color: var(--ink-3); }
.need { margin: 0 0 20px; padding: 0; list-style: none; }
.need li { padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: 17px; }
.need li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-strong, var(--blue)); }

@media (max-width: 980px) {
  .hero-split .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-split .display, .hero-split .lead { margin-inline: auto; }
  .hero-split .actions { justify-content: center; }
  .quote-card, .audience { grid-template-columns: 1fr; }
  .audience.flip > :first-child { order: 0; }
}
@media (max-width: 820px) {
  .dd-btn { display: none; }
  .dd-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0; min-width: 0; background: transparent; }
  .dd-menu::before { display: none; }
  .dd-menu a { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .dd-menu a:hover, .dd-menu a[aria-current="page"] { background: transparent; }
  .dd-menu strong { font-size: 22px; }
  .dd-menu small { font-size: 13px; }
  .plan-head .link-arrow { margin-left: 0; }
}
@media (max-width: 720px) {
  .wa { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .node-label { font-size: 11px; padding: 3px 9px; }
  .orbit-tag { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .node, .orbit .spoke { animation: none; }
}

/* ---------- Footer with five columns ---------- */
.foot-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr 0.8fr; }
@media (max-width: 980px) { .foot-top { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .foot-top { grid-template-columns: 1fr 1fr; } }

/* ---------- Accessibility ---------- */
/* Links inside running text are underlined so they do not rely on colour alone */
p a:not(.btn):not(.link-arrow), li a:not(.btn):not(.link-arrow) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Always-black sections: use light link colours regardless of theme */
.cta.dark .link-arrow { color: #6cb6ff; }
body[data-product] .cta.dark .link-arrow { color: color-mix(in srgb, var(--accent) 45%, white); }

/* ---------- Touch targets ---------- */
@media (pointer: coarse) {
  .link-arrow, .step .tag, .post-more, .foot-col a, .jump a, .patient-link a { min-height: 44px; display: inline-flex; align-items: center; }
  .patient-link a { display: inline; min-height: 0; padding: 12px 0; }
}
@media (max-width: 720px) {
  .wa { width: 48px; height: 48px; right: 12px; bottom: 12px; }
  .wa svg { width: 26px; height: 26px; }
  .site-footer { padding-bottom: 88px; }
}
