/* DB Brothers / DB HMS - public site. One environment: deep teal-navy water,
   the logo's teal-to-navy ribbon as the signature, coral only for the ask. */

:root {
  --ink: #06192c;
  --ink-2: #0a2440;
  --ink-3: #0f3050;
  --panel: rgba(214, 240, 244, 0.045);
  --panel-2: rgba(214, 240, 244, 0.08);
  --line: rgba(160, 214, 222, 0.16);
  --line-strong: rgba(160, 214, 222, 0.42);
  --text: #e9f5f6;
  --muted: #a3bfc6;
  --teal: #2fc1c4;
  --teal-2: #1b9aa0;
  --navy: #0e2650;
  --accent: #ff8a5b;
  --accent-ink: #2a1206;
  --good: #57d9a3;
  --warn: #ffc857;
  --bad: #ff6b6b;
  --paper: #eaf4f4;
  --paper-ink: #0b2236;
  --paper-muted: #44606d;

  --display: "Unbounded", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --hindi: "Noto Sans Devanagari", "Figtree", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 18px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --tshadow: 0 1px 2px rgba(3, 12, 22, 0.95), 0 3px 12px rgba(3, 12, 22, 0.78), 0 10px 44px rgba(3, 12, 22, 0.8);
}

* { box-sizing: border-box; }
/* Components set display (flex, grid); [hidden] must still win. */
[hidden] { display: none !important; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.9s var(--ease-out) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
:lang(hi), .hi { font-family: var(--hindi); }

img, svg, video { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7fe3e5; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top 0.2s var(--ease-out); }
.skip:focus { top: 12px; }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }

/* ---------------------------------------------------------- environment */
.env { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.env::before, .env::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(80px); opacity: 0.32;
  animation: drift 90s linear infinite;
}
.env::before { background: radial-gradient(circle, #13707a 0%, transparent 62%); left: -25vmax; top: -20vmax; }
.env::after { background: radial-gradient(circle, #183a78 0%, transparent 62%); right: -30vmax; bottom: -30vmax; animation-delay: -45s; animation-direction: reverse; }
.env .grain { position: absolute; inset: -50%; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(8vmax, 6vmax) rotate(180deg); } 100% { transform: translate(0, 0) rotate(360deg); } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(6, 25, 44, 0.82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand svg { width: 42px; height: auto; }
.brand b { font: 700 15px/1 var(--display); letter-spacing: 0.16em; }
.brand small { display: block; font: 500 9.5px/1.3 var(--mono); letter-spacing: 0.22em; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; transition: background 0.25s var(--ease-out), color 0.25s; }
.nav-links a:hover { background: var(--panel-2); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; width: 44px; height: 44px; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links { position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; background: rgba(6, 25, 44, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s; }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255, 138, 91, 0.6); }
.btn-accent:hover { background: #ff9d74; color: var(--accent-ink); }
.btn-ghost { background: rgba(233, 245, 246, 0.06); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(233, 245, 246, 0.12); color: #fff; }
.btn-teal { background: var(--teal); color: #032328; }
.btn-teal:hover { background: #59d6d8; color: #032328; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
@media (pointer: coarse) { .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } }

/* -------------------------------------------------------------- hero */
.hero { position: relative; height: 460vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage .poster, .stage video, .stage canvas.loop {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.stage .poster { background: radial-gradient(ellipse 80% 70% at 50% 50%, #0d3a55 0%, var(--ink) 70%) center/cover no-repeat; }
.stage video { opacity: 0; transition: opacity 1.2s var(--ease-out); transform: translateZ(0); will-change: transform; }
.stage.video-ready video { opacity: 1; }
.stage.video-ready canvas.loop { opacity: 0; }
.stage canvas.loop { transition: opacity 1s var(--ease-out); }
.scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 45%, rgba(3, 12, 22, 0) 35%, rgba(3, 12, 22, 0.62) 100%); }
.band {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 90px var(--gutter) 40px; opacity: 0; pointer-events: none;
  text-shadow: var(--tshadow);
}
.band.live { pointer-events: auto; }
.band::before { content: ""; position: absolute; inset: -4%; pointer-events: none; opacity: calc(0.25 + 0.75 * var(--k, 1)); background: radial-gradient(ellipse 66% 56% at 50% 50%, rgba(3, 12, 22, 0.66) 0%, rgba(3, 12, 22, 0.44) 46%, rgba(3, 12, 22, 0) 76%); }
.band > * { position: relative; }
.band .btn { text-shadow: none; }
.band h1, .band h2 { font-size: clamp(34px, 6.2vw, 84px); max-width: 15ch; margin-inline: auto; }
.band p.sub { font-size: clamp(17px, 1.6vw, 21px); color: #d6e8ea; max-width: 46ch; margin: 18px auto 0; }
.band .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.band .em { color: var(--teal); }
.band .accent { color: var(--accent); }

/* scrubbed text: words and characters */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; }
.b-scatter .c { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.6, 1); opacity: var(--kc); transform: translate(calc((1 - var(--kc)) * var(--jx, 0px)), calc((1 - var(--kc)) * var(--jy, 0px))) rotate(calc((1 - var(--kc)) * var(--jr, 0deg))); }
.b-rise .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 34px)); }
.b-depth .line { --kc: clamp(0, var(--k, 0) * 1.6, 1); opacity: var(--kc); transform: scale(calc(0.82 + 0.18 * var(--kc))); }
.b-settle .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 26px)); }
.b-settle .sub { --ks: clamp(0, (var(--k, 0) - 0.62) * 4, 1); opacity: var(--ks); transform: translateY(calc((1 - var(--ks)) * 14px)); }
.b-settle .cta-row { --kb: clamp(0, (var(--k, 0) - 0.76) * 5, 1); opacity: var(--kb); transform: translateY(calc((1 - var(--kb)) * 14px)); }
.b-settle .settle-mark { --km: clamp(0, var(--k, 0) * 1.8, 1); opacity: var(--km); transform: scale(calc(0.86 + 0.14 * var(--km))); width: min(170px, 34vw); margin: 0 auto 22px; filter: drop-shadow(0 10px 40px rgba(47, 193, 196, 0.35)); }

.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(4, 16, 28, 0.55); border: 1px solid rgba(120, 190, 200, 0.3); border-radius: 999px; backdrop-filter: blur(10px); padding: 7px 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #cfe7ea; text-shadow: 0 1px 3px rgba(3, 12, 22, 0.85); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.hero-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; place-items: center; gap: 8px; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; transition: opacity 0.4s; }
.hero-cue .ring { width: 40px; height: 40px; color: var(--teal); transform: rotate(-90deg); }
.hero-cue .chev { width: 18px; height: 18px; animation: bob 2.4s var(--ease-io) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-height: 560px) { .hero-cue { display: none; } }

/* static hero: phones, portrait tablets, coarse portrait, landscape phones, reduced motion */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px), (orientation: portrait) and (pointer: coarse), (orientation: landscape) and (pointer: coarse) and (max-height: 560px), (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .stage { position: relative; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 60px; }
  .stage video, .hero-cue { display: none; }
  .stage canvas.loop { position: relative; inset: auto; height: 230px; order: 1; flex: none; }
  .stage .band.b-scatter { order: 0; }
  .stage .band.b-settle { order: 2; }
  .band { position: relative; inset: auto; opacity: 1; pointer-events: auto; padding: 18px var(--gutter); --k: 1; }
  .band::before { display: none; }
  .band.b-hide-static { display: none; }
  .band h1, .band h2 { font-size: clamp(30px, 8.4vw, 54px); }
}

/* ------------------------------------------------------------ sections */
section.block { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { max-width: 760px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 56px); margin-top: 14px; }
.sec-head p { color: var(--muted); font-size: clamp(17px, 1.4vw, 19.5px); margin-top: 18px; max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* reveal choreography */
.reveal .part { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in .part { opacity: 1; transform: none; }
.reveal.in .part:nth-child(2) { transition-delay: 0.08s; }
.reveal.in .part:nth-child(3) { transition-delay: 0.16s; }
.reveal.in .part:nth-child(4) { transition-delay: 0.24s; }
.reveal.in .part:nth-child(5) { transition-delay: 0.32s; }
.reveal.in .part:nth-child(6) { transition-delay: 0.4s; }
.reveal.done .part, .reveal.done .part:nth-child(n) { transition-delay: 0s; }

/* --------------------------------------------------- patient tools strip */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.tool {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 26px;
  border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.tool:hover { transform: translateY(-6px); border-color: var(--line-strong); color: var(--text); }
.tool .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(47, 193, 196, 0.12); color: var(--teal); }
.tool h3 { font-size: 22px; }
.tool p { color: var(--muted); font-size: 16px; }
.tool .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); }
.tool .free { position: absolute; top: 18px; right: 18px; font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255, 138, 91, 0.5); border-radius: 999px; padding: 6px 10px; }
.tool.hear .wave { position: absolute; right: -20px; bottom: -10px; width: 180px; opacity: 0.18; }
.tool.hear.in-view .wave path { animation: wave 4.6s var(--ease-io) infinite; animation-delay: -1.2s; transform-origin: center; }
@keyframes wave { 0%, 100% { transform: scaleY(0.7); } 50% { transform: scaleY(1.1); } }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- the loop (signature) */
.loop-sec { overflow: hidden; }
.loop-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-top: 50px; }
.loop-art { position: relative; aspect-ratio: 16 / 10; }
.loop-art svg { width: 100%; height: 100%; overflow: visible; }
.loop-track { fill: none; stroke: rgba(160, 214, 222, 0.14); stroke-width: 26; stroke-linecap: round; }
.loop-glow { fill: none; stroke: url(#loopGrad); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 12px rgba(47, 193, 196, 0.55)); }
.station circle.dot { fill: var(--ink-2); stroke: var(--line-strong); stroke-width: 2; transition: fill 0.4s var(--ease-out), stroke 0.4s var(--ease-out); }
.station text { fill: var(--muted); font: 600 13px var(--body); transition: fill 0.4s; }
.station.lit circle.dot { fill: var(--teal); stroke: #bff4f5; }
.station.lit text { fill: var(--text); }
.station { cursor: pointer; }
.station:focus-visible { outline: none; }
.station:focus-visible circle.dot { stroke: var(--accent); stroke-width: 4; }
.patient-dot { fill: var(--accent); filter: drop-shadow(0 0 10px rgba(255, 138, 91, 0.9)); }
.hold { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.hold-btn { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold-btn .fill { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.28); transform-origin: left; transform: scaleX(var(--hold, 0)); pointer-events: none; }
.hold-btn span { position: relative; }
.hold-hint { color: var(--muted); font-size: 14px; }
.station-card { border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); padding: 26px; min-height: 300px; }
.station-card h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.station-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.station-card li { display: flex; gap: 10px; color: #d3e6e8; font-size: 15.5px; line-height: 1.45; }
.station-card li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--teal); }
.station-card .swap { transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.station-card .swap.out { opacity: 0; transform: translateY(8px); }
@media (max-width: 900px) { .loop-grid { grid-template-columns: 1fr; } .station text { font-size: 15px; } }

/* --------------------------------------------------------- feature atlas */
.atlas { margin-top: 56px; display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.mod {
  grid-column: span 4; border-radius: var(--radius); padding: 24px 22px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mod:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateY(-3px); }
.mod.wide { grid-column: span 6; }
.mod header { display: flex; align-items: center; gap: 12px; }
.mod .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 193, 196, 0.1); color: var(--teal); }
.mod h3 { font-size: 18px; }
.mod ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.mod li { position: relative; padding-left: 18px; color: #cfe2e5; font-size: 15px; line-height: 1.45; }
.mod li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; border-radius: 2px; background: var(--teal-2); }
.mod li b { color: var(--text); font-weight: 600; }
.tag-soon { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font: 600 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(255, 200, 87, 0.45); vertical-align: 2px; }
@media (max-width: 1000px) { .mod, .mod.wide { grid-column: span 6; } }
@media (max-width: 640px) { .mod, .mod.wide { grid-column: span 12; } }

/* counters band */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 60px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.numbers div { background: var(--ink); padding: 28px 24px; }
.numbers b { display: block; font: 700 clamp(30px, 3.6vw, 46px)/1 var(--display); color: var(--text); }
.numbers span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .numbers { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------- trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid var(--line); }
.trust > div { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); }
.trust > div:last-child { border-right: 0; }
.trust > div + div { padding-left: 24px; }
.trust h3 { font-size: 18px; display: flex; gap: 10px; align-items: center; }
.trust p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
@media (max-width: 800px) { .trust { grid-template-columns: 1fr; } .trust > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0 !important; } }

/* ---------------------------------------------------------- directory */
.dir-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.dir-tools input, .dir-tools select { flex: 1 1 220px; }
.hospitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.hcard { border-radius: var(--radius); padding: 22px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hcard h3 { font-size: 18px; }
.hcard .where { color: var(--muted); font-size: 14.5px; }
.hcard .specs { display: flex; flex-wrap: wrap; gap: 6px; }
.hcard .specs span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(47, 193, 196, 0.1); color: #bfeef0; }
.hcard .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.empty { color: var(--muted); padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
@media (max-width: 1000px) { .hospitals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hospitals { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(47, 193, 196, 0.08), transparent 60%); }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 13px/1 var(--mono); color: var(--teal); letter-spacing: 0.14em; }
.step h3 { font-size: 18px; margin-top: 14px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- paper (forms) */
.paper { background: var(--paper); color: var(--paper-ink); border-radius: clamp(24px, 4vw, 44px); padding: clamp(28px, 5vw, 64px); }
.paper .kicker { color: #0d7f84; }
.paper h2 { color: var(--paper-ink); }
.paper p.lead { color: var(--paper-muted); margin-top: 14px; max-width: 58ch; }
.join { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.join .perks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.join .perks li { display: flex; gap: 12px; color: var(--paper-ink); font-weight: 500; }
.join .perks svg { flex: none; color: #0d7f84; margin-top: 3px; }
.contact-lines { margin-top: 28px; display: grid; gap: 8px; color: var(--paper-muted); font-size: 15px; }
.contact-lines a { color: #0b6f74; font-weight: 600; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }

form.f { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.f .full { grid-column: 1 / -1; }
.f label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.paper .f label { color: var(--paper-ink); }
.f input, .f select, .f textarea, .field {
  width: 100%; font: 400 16px/1.4 var(--body); padding: 13px 14px; border-radius: 12px;
  border: 1px solid #9fb6bd; background: #fff; color: var(--paper-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.f textarea { resize: vertical; min-height: 96px; }
.f input:focus, .f select:focus, .f textarea:focus, .field:focus { outline: none; border-color: #0d7f84; box-shadow: 0 0 0 4px rgba(13, 127, 132, 0.18); }
.dark-field { background: rgba(6, 25, 44, 0.6); color: var(--text); border: 1px solid var(--line-strong); }
.dark-field:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47, 193, 196, 0.2); }
.f .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14.5px; }
.f .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.f .msg { font-size: 14.5px; font-weight: 600; }
.f .msg.err { color: #b42318; }
.f .msg.ok { color: #0b7a4b; }
@media (max-width: 640px) { form.f { grid-template-columns: 1fr; } }
.done-card { display: grid; gap: 10px; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid #b6d3d6; }
.done-card h3 { color: var(--paper-ink); font-size: 20px; }
.done-card p { color: var(--paper-muted); }

/* ---------------------------------------------------------------- faq */
.faq { margin-top: 40px; display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 0 22px; transition: background 0.3s; }
.faq details[open] { background: var(--panel-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--body); color: var(--teal); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* ------------------------------------------------------------- footer */
footer.site { border-top: 1px solid var(--line); padding: 60px 0 40px; margin-top: 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer.site h4 { font: 600 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer.site a { color: var(--text); text-decoration: none; }
footer.site a:hover { color: var(--teal); }
footer.site .tag { color: var(--muted); margin-top: 14px; max-width: 34ch; font-size: 15px; }
footer.site .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer.site .cols { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1fae5b; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease-out); }
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ---------------------------------------------------- tool pages (shared) */
.tool-page { padding: 120px 0 80px; min-height: 100vh; }
.tool-head { max-width: 780px; }
.tool-head h1 { font-size: clamp(30px, 4.6vw, 56px); margin-top: 14px; }
.tool-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; margin-top: 22px; }
.lang-switch button { background: none; border: 0; color: var(--muted); font: 600 14px/1 var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--teal); color: #032328; }
.panel { margin-top: 34px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: clamp(22px, 4vw, 40px); }
.panel h2 { font-size: clamp(22px, 2.4vw, 30px); }
.panel .muted { color: var(--muted); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.notice.info { background: rgba(47, 193, 196, 0.08); border: 1px solid rgba(47, 193, 196, 0.3); color: #cdeeef; }
.notice.warn { background: rgba(255, 200, 87, 0.08); border: 1px solid rgba(255, 200, 87, 0.4); color: #ffe7b0; }
.notice.danger { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.55); color: #ffd4d4; }
.notice svg { flex: none; margin-top: 2px; }
.f-dark label { color: var(--text); }
.f-dark input, .f-dark select, .f-dark textarea { background: rgba(6, 25, 44, 0.6); color: var(--text); border-color: var(--line-strong); }
.f-dark input:focus, .f-dark select:focus, .f-dark textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47, 193, 196, 0.2); }
.f-dark .msg.err { color: #ffb4b4; }
.f-dark .msg.ok { color: #9ff0c9; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.25); border-top-color: currentColor; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  .reveal .part { opacity: 1; transform: none; }
}

/* ---------------------------------------------- medicine reminder phone */
.remind-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.remind-copy h2 { font-size: clamp(30px, 4.2vw, 54px); margin-top: 14px; }
.remind-copy > p { color: var(--muted); margin-top: 18px; font-size: 18px; max-width: 54ch; }
.remind-points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.remind-points li { position: relative; padding-left: 28px; color: #d3e6e8; }
.remind-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 35%, rgba(255, 138, 91, 0.2) 40%); }
.remind-points b { color: var(--text); }
.phone-wrap { display: grid; place-items: center; }
.phone {
  --dur: 10s;
  position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1d3550, #0b1a2b); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  rotate: -3deg;
}
.phone::before { content: ""; position: absolute; inset: 12px; border-radius: 34px; background: #0b141a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.035'%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Cpath d='M50 50l10 10M60 50L50 60'/%3E%3C/g%3E%3C/svg%3E"); }
.phone > * { position: relative; }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 14px; background: #000; z-index: 3; }
.push { position: absolute; z-index: 4; top: 52px; left: 22px; right: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px; border-radius: 18px; background: rgba(240, 248, 250, 0.94); color: #10202c; font-size: 12.5px; line-height: 1.35; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(-30px); }
.push b { font-size: 13px; }
.push time { font-size: 11px; color: #5a6b76; }
.push-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #2fc1c4, #2b5ea8); color: #fff; }
.wa-head { display: flex; align-items: center; gap: 10px; margin: 34px 4px 0; padding: 10px 12px; border-radius: 26px 26px 0 0; background: #1f2c34; color: #e9edef; font-size: 14px; }
.wa-head small { display: block; font-size: 11px; color: #8696a0; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0f7f84; color: #fff; font: 700 12px var(--body); }
.wa-body { margin: 0 4px; padding: 10px 10px 14px; display: grid; gap: 10px; }
.wa-day { justify-self: center; font: 600 10.5px/1 var(--body); letter-spacing: 0.06em; color: #8696a0; background: #1f2c34; padding: 5px 9px; border-radius: 8px; }
.wa-msg { justify-self: start; max-width: 92%; background: #1f2c34; color: #e9edef; border-radius: 4px 14px 14px 14px; padding: 9px 11px 6px; font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(10px) scale(0.96); transform-origin: top left; }
.wa-msg b { color: #fff; }
.wa-time { display: block; text-align: right; font-size: 10.5px; color: #8696a0; margin-top: 4px; }
.glass-scene { display: grid; justify-items: center; }
.glass-svg { width: 132px; height: auto; overflow: visible; }
.glass-svg .water { transform: translateY(14px); }
.pill { transform-box: fill-box; transform-origin: center; transform: translateY(-40px); opacity: 0; }
.glass-svg .water, .glass-svg .wave { transform-box: view-box; }
.bub { opacity: 0; }
.dont-miss { font: 700 16px/1.2 var(--display); color: var(--accent); text-shadow: 0 0 18px rgba(255, 138, 91, 0.55); opacity: 0; transform: scale(0.8); margin-top: 2px; }
.course { display: flex; align-items: center; gap: 10px; justify-content: center; }
.course-label { font: 600 10.5px/1 var(--mono); color: #8696a0; letter-spacing: 0.1em; text-transform: uppercase; }
.dots { display: flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3942; }
.dots i.on { background: var(--teal); }
.dots i.now { background: #2a3942; box-shadow: inset 0 0 0 2px var(--teal); }
.next-chip { justify-self: center; font-size: 12px; color: #cfe7ea; background: rgba(47, 193, 196, 0.14); border: 1px solid rgba(47, 193, 196, 0.35); border-radius: 999px; padding: 6px 12px; opacity: 0; }
.next-chip b { color: #fff; }

.phone.playing .push { animation: rm-push var(--dur) var(--ease-out) infinite; }
.phone.playing .wa-msg { animation: rm-msg var(--dur) var(--ease-out) infinite; }
.phone.playing .pill { animation: rm-pill var(--dur) var(--ease-io) infinite; }
.phone.playing .glass-svg .water { animation: rm-water var(--dur) var(--ease-out) infinite; }
.phone.playing .wave { animation: rm-wave 1.6s ease-in-out infinite; }
.phone.playing .bub { animation: rm-bub var(--dur) linear infinite; }
.phone.playing .bub.b2 { animation-delay: 0.25s; }
.phone.playing .bub.b3 { animation-delay: 0.5s; }
.phone.playing .dont-miss { animation: rm-miss var(--dur) var(--ease-out) infinite; }
.phone.playing .dots i.now { animation: rm-dot var(--dur) var(--ease-out) infinite; }
.phone.playing .next-chip { animation: rm-next var(--dur) var(--ease-out) infinite; }

@keyframes rm-push { 0% { opacity: 0; transform: translateY(-30px); } 5%, 20% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes rm-msg { 0%, 12% { opacity: 0; transform: translateY(10px) scale(0.96); } 17%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes rm-pill { 0%, 26% { opacity: 0; transform: translateY(-40px) rotate(0); } 28% { opacity: 1; transform: translateY(-30px) rotate(-10deg); } 34% { opacity: 1; transform: translateY(78px) rotate(25deg); } 40% { opacity: 1; transform: translateY(132px) rotate(70deg); } 54% { opacity: 0; transform: translateY(136px) rotate(90deg) scale(0.5); } 100% { opacity: 0; transform: translateY(136px) scale(0.5); } }
@keyframes rm-water { 0%, 35% { transform: translateY(14px); } 38% { transform: translateY(6px); } 42%, 92% { transform: translateY(10px); } 100% { transform: translateY(14px); } }
@keyframes rm-wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-12px); } }
@keyframes rm-bub { 0%, 38% { opacity: 0; transform: translateY(0); } 42% { opacity: 0.8; } 58% { opacity: 0; transform: translateY(-60px); } 100% { opacity: 0; transform: translateY(-60px); } }
@keyframes rm-miss { 0%, 42% { opacity: 0; transform: scale(0.8); } 47%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes rm-dot { 0%, 54% { background: #2a3942; } 58%, 94% { background: var(--accent); box-shadow: 0 0 10px var(--accent); } 100% { background: #2a3942; } }
@keyframes rm-next { 0%, 60% { opacity: 0; transform: translateY(8px); } 65%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@media (max-width: 900px) { .remind-grid { grid-template-columns: 1fr; } .phone-wrap { order: 2; } .phone { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) {
  .push { opacity: 0; }
  .wa-msg, .dont-miss, .next-chip { opacity: 1; transform: none; }
  .dots i.now { background: var(--accent); }
}

/* ------------------------------------------ hero product cards (floaters) */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.fcard {
  position: absolute; display: grid; gap: 3px; min-width: 190px; padding: 14px 16px 13px; border-radius: 16px;
  background: rgba(8, 30, 50, 0.62); border: 1px solid rgba(120, 200, 210, 0.28); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7); color: var(--text); font-size: 13px; line-height: 1.35;
  opacity: calc(var(--fo, 1) * 0.96); transform: translateY(calc(var(--fy, 0) * 1px));
  animation: float 9s var(--ease-io) infinite;
}
.fcard b { font: 700 16px/1.2 var(--display); }
.fcard span b { font: 700 13px var(--body); color: var(--teal); }
.fcard > span:last-of-type { color: var(--muted); }
.fk { font: 600 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.live-dot { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(87, 217, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(87, 217, 163, 0); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.f1 { left: 5%; top: 22%; animation-delay: -1s; }
.f2 { right: 5%; top: 26%; animation-delay: -4s; }
.f3 { left: 7%; bottom: 16%; animation-delay: -6s; }
.f4 { right: 7%; bottom: 20%; animation-delay: -2.5s; }
@media (max-width: 1180px), (max-height: 680px) { .floaters { display: none; } }

/* ------------------------------------------------------- patient app */
.app-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: clamp(24px, 4vw, 44px); background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(47, 193, 196, 0.22), transparent 60%), linear-gradient(140deg, #0c2c4a, #0a2038); border: 1px solid var(--line-strong); overflow: hidden; }
.app-copy h2 { font-size: clamp(28px, 3.8vw, 50px); margin-top: 14px; }
.app-copy > p { color: #cfe3e6; margin-top: 16px; max-width: 52ch; }
.app-feats { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.app-feats li { padding: 7px 13px; border-radius: 999px; background: rgba(233, 245, 246, 0.07); border: 1px solid var(--line); font-size: 14px; }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.25); transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8); }
.store-btn small { display: block; font-size: 11px; opacity: 0.8; }
.store-btn b { display: block; font: 600 19px/1.1 var(--body); }
.app-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.app-phones { position: relative; height: 420px; }
.mini-phone { position: absolute; width: 210px; height: 400px; border-radius: 32px; padding: 16px 14px; background: #0b141a; border: 7px solid #1d3550; box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.85); display: grid; align-content: start; gap: 12px; font-size: 12.5px; }
.mini-phone.back { right: 4%; top: 0; rotate: 7deg; opacity: 0.85; }
.mini-phone.front { left: 6%; top: 20px; rotate: -5deg; }
.app-sec.in-view .mini-phone.front { animation: float 8s var(--ease-io) infinite; }
.app-sec.in-view .mini-phone.back { animation: float 9s var(--ease-io) infinite -3s; }
.mp-top { font: 700 13px var(--body); color: #e9edef; padding-bottom: 8px; border-bottom: 1px solid #22313b; }
.mp-token { display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border-radius: 16px; background: linear-gradient(160deg, rgba(47, 193, 196, 0.25), rgba(43, 94, 168, 0.25)); }
.mp-token small, .mp-eta small { font: 600 9.5px var(--mono); letter-spacing: 0.14em; color: #9fc3c8; }
.mp-token b { font: 700 38px/1.1 var(--display); }
.mp-token span { color: #cfe7ea; }
.mp-eta { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.mp-eta b { font: 700 18px var(--display); color: var(--accent); }
.mp-bar { height: 6px; border-radius: 6px; background: #22313b; overflow: hidden; }
.mp-bar i { display: block; height: 100%; width: 70%; background: linear-gradient(90deg, var(--teal), var(--accent)); }
.mp-btn { text-align: center; padding: 10px; border-radius: 12px; background: rgba(87, 217, 163, 0.14); color: #9ff0c9; font-weight: 600; }
.mp-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; border-radius: 10px; background: #15232c; }
.mp-row .ok { color: #9ff0c9; } .mp-row .hi { color: #ffb0b0; } .mp-row .lo { color: #a9cfff; }
@media (max-width: 900px) { .app-card { grid-template-columns: 1fr; } .app-phones { height: 400px; max-width: 420px; width: 100%; margin: 0 auto; } }
@media (max-width: 420px) { .mini-phone { width: 180px; height: 360px; } }
.apk-btn { padding: 15px 24px; font-size: 16px; }
