/* podo — начална страница. Същите цветове и шрифт като приложението (app/resources/css/podo/app.css).
   Жълто-зеленото е само за главното действие и номерираната зона; кобалт — за връзки и избрано. */
:root {
  --bg: #F5F6F3;
  --bg-2: #ECEEE9;
  --surface: #FFFFFF;
  --ink: #102329;
  --ink-2: #2B3E44;
  --muted: #56666B;
  --line: #DADDD6;
  --lime: #D5F86B;
  --lime-2: #C4EC4F;
  --cobalt: #3D5AFE;
  --cobalt-ink: #2A44D8;
  --on-ink: #C7D3D0;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --gutter: 20px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cobalt-ink); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border: 0; border-radius: 16px;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none; touch-action: manipulation;
  transition: background-color 120ms var(--ease), transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: rgba(16, 35, 41, .06); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 13px; }

/* ---------- Горна лента ---------- */
.top {
  position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top);
  background: rgba(245, 246, 243, .86); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.top-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 24px; height: 30px; }
.wordmark { font-weight: 700; font-size: 27px; letter-spacing: -.03em; line-height: 1; }
.nav { display: none; }
.top-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.top-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; border-radius: 12px; }
.top-login:hover { background: rgba(16, 35, 41, .06); }

/* ---------- Начало ---------- */
.hero { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(38px, 10.4vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.lead { margin-top: 18px; max-width: 34em; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.hero-cta { display: grid; gap: 10px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.hero .hero-login { display: none; }

/* Сцената с модела — същата тъмна основа като прегледа в приложението. */
.stage {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border-radius: 28px; color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 18%, #1C3A43 0%, #12282E 55%, #0E1F24 100%);
}
.stage-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.seg button { min-height: 44px; min-width: 76px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: #fff; font-weight: 700; font-size: 16px; touch-action: manipulation; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.seg button:focus-visible, .foot [role="button"]:focus-visible { outline-color: var(--lime); }
.stage-hint { font-size: 14px; color: var(--on-ink); text-align: right; }
.foot { width: 100%; height: auto; margin-top: -18px; -webkit-user-select: none; user-select: none; }
/* Долната част на модела потъва в сцената, за да се чете редът със зоната. */
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(14, 31, 36, 0) 0%, rgba(14, 31, 36, .82) 52%, #0E1F24 82%); }
.foot image { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); pointer-events: none; }
.foot [role="button"] { fill: rgba(255, 255, 255, 0); stroke: rgba(255, 255, 255, 0); stroke-width: 3; cursor: pointer; outline: none; transition: fill 120ms var(--ease), stroke 120ms var(--ease); }
.foot [role="button"]:hover { fill: rgba(255, 255, 255, .10); stroke: rgba(255, 255, 255, .55); }
.foot [role="button"]:focus-visible { fill: rgba(213, 248, 107, .14); stroke: var(--lime); }
.mark-dot { fill: var(--lime); stroke: rgba(16, 35, 41, .7); stroke-width: 6; }
.mark-num { fill: var(--ink); font-weight: 700; font-size: 26px; text-anchor: middle; dominant-baseline: central; }
.mark-line { stroke: var(--lime); stroke-width: 3; }
.mark-pill { fill: rgba(16, 35, 41, .86); }
.mark-text { fill: #fff; font-weight: 700; font-size: 24px; dominant-baseline: central; }
#foot-mark { pointer-events: none; }
#foot-mark.pop .mark-dot, #foot-mark.pop .mark-num { animation: pop 200ms var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { transform: scale(.55); opacity: .4; } to { transform: none; opacity: 1; } }
.stage-foot { position: relative; z-index: 2; margin-top: -64px; padding: 0 20px 20px; }
.stage-where { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.stage-say { margin-top: 6px; max-width: 30em; font-size: 14.5px; line-height: 1.45; color: var(--on-ink); }

/* ---------- Раздели: заглавие вляво, съдържание вдясно ---------- */
.sec { display: grid; gap: 28px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.sec h2, .band h2, .end h2 { font-size: clamp(30px, 7.6vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.sec-lead { margin-top: 12px; max-width: 26em; color: var(--muted); }
h3, dt { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }

/* Един ден — същият ритъм като графика в приложението: час, точка, ред. */
.day li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0 26px; padding: 20px 0; border-top: 1px solid var(--line); }
.day li:first-child { border-top: 0; padding-top: 0; }
.day time { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.day li::before { content: ""; position: absolute; left: 71px; top: 27px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }
.day li:first-child::before { top: 7px; }
.day li::after { content: ""; position: absolute; left: 76px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.day li:first-child::after { top: 10px; }
.day li:last-child::after { bottom: auto; height: 30px; }
.day p { margin-top: 6px; color: var(--ink-2); max-width: 34em; }

/* Примерната карта „Следващ пациент“ */
.np { margin-top: 26px; max-width: 400px; }
.np-card { padding: 20px; border-radius: 24px; background: var(--ink); color: #fff; }
.np-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--on-ink); }
.np-row b { color: #fff; }
.np-time { margin-top: 10px; font-size: 19px; color: var(--on-ink); font-variant-numeric: tabular-nums; }
.np-time b { font-size: 44px; line-height: 1; letter-spacing: -.03em; color: #fff; margin-right: 4px; }
.np-name { margin-top: 8px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.np-sub { font-size: 15px; color: var(--on-ink); }
.np-ctx { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15px; color: #E3EAE8; }
.np-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 14px; border-radius: 15px; background: var(--lime); color: var(--ink); font-weight: 700; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Отворени редове */
.rows > div { padding: 20px 0; border-top: 1px solid var(--line); }
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows dd { margin-top: 6px; color: var(--ink-2); max-width: 36em; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 3px; }

/* ---------- За пациента ---------- */
.band { padding: 8px 0 56px; }
.band-in { display: grid; gap: 32px; }
.band-in { position: relative; }
.band-in::before { content: ""; position: absolute; inset: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); border-radius: 32px; background: var(--ink); z-index: -1; }
.band { position: relative; z-index: 0; }
.band-text { padding: 40px 12px 0; color: #fff; }
.band-lead { margin-top: 14px; max-width: 30em; color: var(--on-ink); font-size: 18px; line-height: 1.5; }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 9px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) scale(.8); transform-origin: left center; opacity: .9; }
.band .ticks { color: #E9EFED; max-width: 30em; }
.pt { padding: 0 12px 32px; }
.pt-screen { max-width: 360px; padding: 20px 18px; border-radius: 28px; background: var(--bg); color: var(--ink); }
.pt-hi { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.pt-next { display: grid; gap: 2px; margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--ink); color: var(--on-ink); font-size: 14.5px; }
.pt-next b { color: #fff; font-size: 18px; line-height: 1.3; }
.pt-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pt-btns i { display: grid; place-items: center; min-height: 44px; border-radius: 13px; font-style: normal; font-weight: 700; font-size: 15px; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42); }
.pt-h { margin-top: 18px; font-size: 17px; font-weight: 700; }
.pt-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.pt-list span, .pt-visit span { color: var(--muted); font-size: 14.5px; }
.pt-visit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 0 0; font-size: 15.5px; }
.pt figcaption { color: var(--on-ink); }

/* ---------- Цени ---------- */
.plans { display: grid; gap: 14px; }
.plan { display: flex; flex-direction: column; padding: 24px 22px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.plan h3 { font-size: 17px; letter-spacing: .04em; }
.plan-price { margin-top: 10px; color: var(--muted); }
.plan-price b { font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.plan-for { margin-top: 12px; color: var(--ink-2); }
.plan .ticks { margin: 18px 0 24px; font-size: 16px; }
.plan .btn { margin-top: auto; }
.plan-pro { background: var(--ink); color: #fff; box-shadow: none; }
.plan-pro .plan-price { color: var(--on-ink); }
.plan-pro .plan-price b { color: #fff; }
.plan-pro .plan-for { color: var(--on-ink); }
.plan-clinic { padding: 18px 2px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- Край ---------- */
.end { padding-top: 64px; padding-bottom: 72px; border-top: 1px solid var(--line); }
.end h2 { max-width: 14em; }
.foot-bar { border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot-in p { display: flex; align-items: baseline; gap: 10px; }
.foot-in .wordmark { font-size: 20px; color: var(--ink); }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-in nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.foot-in nav a:hover, .nav a:hover { text-decoration: underline; }

/* ---------- По-широки екрани ---------- */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .hero-cta { display: flex; flex-wrap: wrap; }
  .hero .hero-login { display: inline-flex; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-clinic { grid-column: 1 / -1; }
  .stage { max-width: 520px; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .nav { display: flex; gap: 4px; margin-left: 28px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 12px; }
  .top-in { min-height: 76px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 88px; }
  .hero h1 { font-size: clamp(42px, 4.5vw, 62px); line-height: 1.02; }
  .lead { margin-top: 24px; font-size: 20px; }
  .hero-cta { margin-top: 32px; }
  .stage { justify-self: end; width: 100%; max-width: 440px; }
  .sec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding-top: 88px; padding-bottom: 88px; }
  .sec h2, .band h2, .end h2 { font-size: clamp(38px, 3.6vw, 50px); }
  .sec-side { position: sticky; top: 108px; align-self: start; }
  .day li { grid-template-columns: 72px 1fr; gap: 0 30px; padding: 26px 0; }
  .day li::before { left: 81px; top: 34px; }
  .day li::after { left: 86px; }
  .day time { font-size: 21px; }
  .rows > div { padding: 26px 0; }
  .band { padding-bottom: 88px; }
  .band-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; }
  .band-text { padding: 72px 0 72px 40px; }
  .pt { padding: 56px 40px 56px 0; justify-self: end; }
  .end { padding-top: 104px; padding-bottom: 112px; }
  .end h2 { font-size: clamp(44px, 4.6vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .seg button, .foot [role="button"] { transition: none; }
  .btn:active { transform: none; }
  #foot-mark.pop .mark-dot, #foot-mark.pop .mark-num { animation: none; }
}
