/* Homepage typeface: Google Sans Flex (Devanagari and other scripts fall back to Noto) */
:root { --font: "Google Sans Flex", "Inter", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif; }

/* =========================================================
   Doxo homepage styles (served with app/_home/home.html)
   ========================================================= */

/* Design tokens live in /theme.css (shared with the whole app) */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* Smooth scrolling for in-page links, switched on after load so the browser's
   own "restore where you were" on reload is instant, not a long slide */
html.smooth { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--fg);
  /* White behind the page (so a fast-scroll drawing gap never flashes dark);
     dark only for the last stretch, where the footer is */
  background: linear-gradient(to bottom, var(--bg) calc(100% - 1600px), var(--ink) calc(100% - 1600px));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #dbeafe; color: var(--fg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* The white page sits above the sticky footer so the footer is revealed */
.page {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  min-height: 100vh;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i-sm { width: 14px; height: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .15s ease-out;
}
/* Fades out while the hero frame is zoomed to full screen (initStagePin) */
.site-header.header-away { opacity: 0; pointer-events: none; }
.header-inner {
  max-width: calc(var(--container) + 48px);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--dark); color: var(--on-dark);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.2);
}
.brand-mark svg { width: 18px; height: 18px; }

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 22px;
  font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  user-select: none;
}
.btn:active { transform: scale(.98); }
.btn-lg { height: 44px; padding: 0 20px; }
.btn-dark { background: var(--dark); color: var(--on-dark); box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1); }
.btn-dark:hover { background: #26262a; }
.btn .i { width: 15px; height: 15px; }
/* Header and hero calls to action */
.header-cta { height: 38px; padding: 0 20px; gap: 6px; }
.header-cta .i, .hero-actions .btn .i { width: 18px; height: 18px; }

/* ---------- Badges / pills ---------- */
.badge-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--secondary); font-size: 14px; line-height: 20px; color: var(--fg);
  transition: background .2s;
}
.badge-link:hover { background: var(--secondary-2); }
.badge-link .tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--dark); color: var(--on-dark); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: -0.02em;
}
.badge-link .i { width: 14px; height: 14px; color: var(--muted-2); transition: transform .2s; }
.badge-link:hover .i { transform: translateX(2px); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; line-height: 1;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.pill .i { width: 13px; height: 13px; }

.status {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: middle;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.status-ok { background: var(--green-soft); color: #15803d; }

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted-2); }
.h1 { font-size: 3.8rem; line-height: 1; font-weight: 600; letter-spacing: -0.05em; }

.h2 { font-size: 2.6rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance; }
.h2-lg { font-size: 3rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance; }
.h3 { font-size: 2.15rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance; }
.h4 { font-size: 1.35rem; line-height: 1.5; font-weight: 600; letter-spacing: -0.05em; }
.lead { font-size: 18px; line-height: 32px; color: var(--muted); }
.sub { font-size: 16px; line-height: 28px; color: var(--muted); }
.small { font-size: 14px; line-height: 22px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section.workflow-section { padding-top: 48px; }
.section.roles-section { padding-top: 32px; }
.section.reviews-section { padding-top: 40px; }
.reviews-section .section-head { margin-bottom: 40px; }

.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 56px; }
.section-head .sub { max-width: 560px; }
.head-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--muted);
}
.head-icon .i { width: 17px; height: 17px; }

.striped {
  position: relative; overflow: hidden;
  background-color: rgba(0, 0, 0, 0.014);
  border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2);
}
.striped::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 1px, transparent 1px 11px);
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35) 30%, rgba(0,0,0,.35) 70%, #000);
          mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35) 30%, rgba(0,0,0,.35) 70%, #000);
}
.striped > * { position: relative; }

.dots-bg {
  background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1.2px);
  background-size: 14px 14px;
}

/* ---------- Hero ---------- */
.hero { padding: 125px 0 0; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero .h1 { margin-top: 25px; text-wrap: balance; font-weight: 500; line-height: 1; }
.hero .lead { max-width: 632px; margin-top: 21px; font-size: 17px; line-height: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.hero-actions .btn-lg { height: 46px; padding: 0 20px; gap: 6px; }

.hero-stage { margin-top: 64px; padding-bottom: 96px; }
@media (max-width: 767px) {
  .hero { padding-top: 56px; }
  .hero .h1 { margin-top: 20px; }
  .hero .lead { margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  /* .hero prefix so the mobile .container-wide padding reset (below) doesn't remove the bottom padding */
  .hero .hero-stage { margin-top: 40px; padding-bottom: 64px; }
}
.desktop {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 16 / 9.4; min-height: 520px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 196, 140, .95) 0%, rgba(255, 150, 90, .7) 28%, rgba(255,120,80,0) 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(35, 70, 170, 1) 0%, rgba(45, 95, 200, .85) 30%, rgba(60,110,210,0) 65%),
    conic-gradient(from 210deg at 70% 110%, #2a4fb8, #5c7fe0 18%, #f0a27a 40%, #f7c89c 52%, #e98c62 64%, #3a5cc4 86%, #2a4fb8);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.desktop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(100deg, rgba(255,255,255,.07) 0 2px, transparent 2px 60px);
  mix-blend-mode: soft-light;
}
.app-window {
  position: absolute; z-index: 2; left: 50%; top: 58px; transform: translateX(-50%);
  width: min(92%, 1020px); height: calc(100% - 150px);
  background: var(--surface); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10, 20, 60, .5), 0 0 0 1px rgba(255,255,255,.4);
  display: flex; flex-direction: column;
}
.win-bar { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); flex-shrink: 0; }
.win-dots { display: flex; gap: 6px; }
.win-dots span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-dots span:nth-child(2) { background: #febc2e; }
.win-dots span:nth-child(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; font-size: 12px; color: var(--muted-2); font-weight: 500; }
.win-timer { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--fg); background: var(--secondary); padding: 3px 8px; border-radius: 8px; }
.win-timer .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.ws { flex: 1; display: grid; grid-template-columns: 52px minmax(0, .95fr) minmax(0, 1.25fr); min-height: 0; font-size: 12.5px; line-height: 18px; }
.ws-col { padding: 14px; overflow: hidden; min-width: 0; }
.ws-col + .ws-col { border-left: 1px solid var(--border); }

.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #6b8bd6, #3b5bb5); flex-shrink: 0; }
.avatar.a2 { background: linear-gradient(135deg, #f0a27a, #d9734b); }
.avatar.a3 { background: linear-gradient(135deg, #7cc7a0, #3f9a6f); }
.avatar.a4 { background: linear-gradient(135deg, #b39ddb, #7e57c2); }
.avatar.a5 { background: linear-gradient(135deg, #9ca3af, #52525b); }

.caret { display: inline-block; width: 1.5px; height: 13px; background: var(--fg); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Bento grid ---------- */
.bento {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.bento-cell { padding: 48px 40px 44px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.bento-cell:nth-child(odd) { border-right: 1px solid var(--border); }
.bento-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
.bento-visual { height: 280px; width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.bento-cell .eyebrow { margin-top: 4px; }
.bento-cell p { font-size: 16px; line-height: 28px; color: var(--muted); max-width: 400px; text-wrap: balance; }

/* Mini UI cards used across visuals */
.card-ui { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; text-align: left; font-size: 13px; line-height: 19px; }
.card-ui + .card-ui { margin-top: 10px; }
.card-ui .ui-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-ui .ui-h b { font-size: 13px; font-weight: 600; }
.card-ui .ui-cap { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }

   
.ui-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ui-field label { font-size: 11px; color: var(--muted-2); font-weight: 500; }
.ui-input { height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-soft); padding: 0 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.ui-input .i { width: 13px; height: 13px; color: var(--muted-2); }

.ui-btn { margin-top: 10px; height: 34px; border-radius: 10px; background: var(--dark); color: var(--on-dark); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.ui-btn .i { width: 14px; height: 14px; }

/* WhatsApp chat */
.wa { color: #18181b; width: 100%; max-width: 340px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); text-align: left; background: var(--wa-bg); }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #075e54; color: #fff; }
.wa-top .avatar { width: 28px; height: 28px; background: #fff; color: #075e54; }
.wa-top .n { font-size: 13px; font-weight: 600; line-height: 16px; }
.wa-top .s { font-size: 11px; opacity: .8; line-height: 14px; }
.wa-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 17px;
  background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 10px 10px; }
.bub { max-width: 84%; padding: 7px 9px 5px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0.5px rgba(0,0,0,.13); position: relative; }
.bub.me { align-self: flex-end; background: var(--wa-bubble); }
.bub .tm { display: block; text-align: right; font-size: 10px; color: rgba(0,0,0,.45); margin-top: 1px; }
.bub.file { display: flex; align-items: center; gap: 8px; }
.bub.file .fi { width: 26px; height: 30px; border-radius: 5px; background: #ef4444; color: #fff; font-size: 8px; font-weight: 700; display: grid; place-items: center; }
.quick-replies { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-replies span { padding: 5px 10px; border-radius: 999px; background: #fff; color: #0b7a6e; font-size: 11.5px; font-weight: 500; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.typing { display: inline-flex; gap: 3px; padding: 9px 10px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #9ca3af; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: #d4d4d8; }
.bars span.hi { background: var(--fg); }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 32px 0 72px; display: flex; flex-direction: column; gap: 18px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mchip {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 12px; border-radius: 18px;
  font-size: 15px; font-weight: 500; color: var(--fg); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border-2);
}
.mchip .mi { width: 34px; height: 34px; border-radius: 11px; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; }
.mchip .mi .i { width: 17px; height: 17px; }
.mchip.soft .mi { background: var(--secondary); color: var(--fg); }

/* ---------- Checklists and picture frames ---------- */
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 22px; color: var(--fg-2); }
.checks li .i { margin-top: 3px; color: var(--muted-2); }
.visual-frame {
  position: relative; height: 100%; border-radius: var(--radius-xl); overflow: hidden;
  background-color: var(--bg-soft); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 #fff, var(--shadow);
}
.visual-frame.dots-bg { background-color: var(--bg-soft); }
.vstack { width: 100%; max-width: 380px; }

.float-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 500; margin-top: 12px; }
.float-chip .i { width: 14px; height: 14px; color: var(--muted-2); }

/* ---------- Cards ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .card-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); margin-bottom: 4px; }
.card .card-tag .i { width: 15px; height: 15px; }
.card h4 { font-size: 16px; line-height: 24px; font-weight: 600; }
.card p { font-size: 14px; line-height: 22px; color: var(--muted); }

/* ---------- Dotted map / ecosystem section ---------- */
.map-section { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--map-fade-1), var(--map-fade-2) 42%, rgba(0,0,0,0)); }
.map-dots { position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(24,24,27,.16) 1.3px, transparent 1.6px); background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(52% 58% at 50% 42%, #000 0%, rgba(0,0,0,.6) 45%, transparent 75%);
          mask-image: radial-gradient(52% 58% at 50% 42%, #000 0%, rgba(0,0,0,.6) 45%, transparent 75%); }
.map-section .h2-lg { max-width: 18ch; margin: 72px auto 0; }
.map-section .sub { max-width: 620px; margin: 24px auto 0; }
.eco-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; max-width: 880px; margin: 56px auto 0; }
.eco-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px -6px rgba(0,0,0,.14);
  font-size: 14px; font-weight: 500; transform: rotate(var(--r, 0deg));
  transition: transform .25s;
}
.eco-chip:hover { transform: rotate(0) translateY(-2px); }
.eco-chip .ec { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); color: var(--fg); }
.eco-chip .ec .i { width: 14px; height: 14px; }
.eco-chip.more { padding: 8px 16px; background: var(--dark); color: var(--on-dark); }
.fine { font-size: 12.5px; line-height: 20px; color: var(--muted-2); max-width: 640px; margin: 28px auto 0; text-align: center; }

/* ---------- Pricing and FAQ ----------
   Plan on the left, FAQ on the right. Both columns stretch to the same height
   and the FAQ spreads its questions so the two bottom edges line up. */
.section.pricing-section { padding: 112px 0; scroll-margin-top: 72px; }
.pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: stretch; }
.pricing-left { display: flex; flex-direction: column; align-items: flex-start; }
.pricing-label { padding: 4px 12px; font-size: 12px; line-height: 18px; background: var(--bg-muted); }
.pricing-label .i { width: 14px; height: 14px; }
.pricing-left .h2 { margin-top: 20px; font-size: 40px; line-height: 48px; }
.pricing-left .sub { margin-top: 22px; }
.mini-acc { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.mini-acc details { border-radius: 14px; background: var(--secondary); padding: 0 16px; transition: background .2s; }
.mini-acc details[open] { background: var(--bg-muted); }
.mini-acc summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 0; font-size: 15px; font-weight: 500; cursor: pointer; }
.mini-acc summary::-webkit-details-marker { display: none; }
.mini-acc summary .pm { width: 18px; text-align: center; color: var(--muted-2); font-weight: 400; font-size: 18px; transition: transform .2s; }
.mini-acc details[open] summary .pm { transform: rotate(45deg); }
.mini-acc .ans { padding: 0 0 16px 30px; font-size: 14px; line-height: 22px; color: var(--muted); }
.proof { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 40px; font-size: 14px; line-height: 20px; color: var(--muted); }
.stack-av { display: flex; flex-shrink: 0; }
.stack-av .avatar { width: 28px; height: 28px; border: 2px solid var(--bg); margin-left: -8px; font-size: 10px; }
.stack-av .avatar:first-child { margin-left: 0; }
.stack-av img.avatar { object-fit: cover; background: var(--bg-soft); }

.faq { display: flex; flex-direction: column; justify-content: space-between; scroll-margin-top: 96px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 0; font-size: 17px; line-height: 23px; font-weight: 500; cursor: pointer; }
/* The fifth question wraps at most desktop widths; reserving two lines keeps the list the same height at every width */
.faq details:nth-child(5) summary { min-height: 92px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted-2); transition: transform .25s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details.closing summary .i { transform: none; }
.faq .ans { overflow: hidden; padding: 0 0 24px; font-size: 16px; line-height: 26px; color: var(--muted); max-width: 680px; }
.faq .ans p + p { margin-top: 10px; }
/* The last line of the FAQ sits on the same bottom edge as the proof row */
.faq details:last-child:not([open]) summary,
.faq details:last-child .ans { padding-bottom: 0; }
@media (max-width: 1023px) {
  .pricing { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pricing-left .h2 { font-size: 34px; line-height: 42px; }
}
@media (max-width: 767px) {
  .section.pricing-section { padding: 64px 0; }
  .pricing { grid-template-columns: 1fr; gap: 40px; }
  .proof { padding-top: 28px; }
  .faq details:nth-child(5) summary { min-height: 0; }
}

/* ---------- Doctor reviews (hidden until real reviews are added) ---------- */
.masonry { columns: 3; column-gap: 16px; }
.post { break-inside: avoid; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 14px; box-shadow: var(--shadow-sm); }
.post-h { display: flex; align-items: center; gap: 10px; }
.post-h .avatar { width: 38px; height: 38px; }
.post-h .avatar .i { width: 17px; height: 17px; }
.post-h .who { flex: 1; min-width: 0; }
.post-h .who b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.post-h .who span { display: block; font-size: 13px; color: var(--muted-2); line-height: 18px; }
.post-h .more { color: var(--muted-3); }
.post p { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--fg-2); }
.post-f { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-2); }
.post-f span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted-2); }
.post-f .i { width: 13px; height: 13px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1; margin-top: -32px; padding-top: 32px;
  color: #fff; overflow: hidden;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(#393737, #1b1b1b);
}
/* Brand on the left takes the free space; Product and Company sit together on the right */
.footer-inner { padding: 88px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 40px 180px; }
.footer-brand p { margin-top: 18px; max-width: 340px; font-size: 14px; line-height: 23px; color: rgba(255,255,255,.62); }
.footer-brand .brand-mark { background: #fff; color: var(--ink); }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); transition: background .2s; }
.footer-social a:hover { background: rgba(255,255,255,.16); }
.footer-social .i { width: 15px; height: 15px; }
.footer-note { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-col h5 { font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 48px 0 0; font-size: 12.5px; color: rgba(255,255,255,.42); }

/* Footer reveal only where the whole footer fits in the viewport */
@media (min-width: 768px) and (min-height: 860px) {
  .site-footer { position: sticky; bottom: 0; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--fg-2); }
.field label .opt { color: var(--muted-3); font-weight: 400; }
.field input, .field select, .field textarea {
  height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft);
  padding: 0 14px; font: inherit; font-size: 15px; color: var(--fg); transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field textarea { height: 104px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(59,130,246,.6); background: var(--surface); box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.field.err input, .field.err select { border-color: rgba(220,38,38,.6); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
}
.phone-input {
  display: flex; align-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.phone-input:focus-within { border-color: rgba(59,130,246,.6); background: var(--surface); box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.field.err .phone-input { border-color: rgba(220,38,38,.6); }
.phone-cc { display: flex; align-items: center; align-self: stretch; padding: 0 12px 0 14px; border-right: 1px solid var(--border); font-size: 15px; font-weight: 500; color: var(--fg-2); }
.field .phone-input input { height: 100%; border: 0; background: transparent; box-shadow: none; padding: 0 14px 0 12px; letter-spacing: .01em; }
.field .phone-input input:focus { box-shadow: none; background: transparent; }
.field .emsg { font-size: 12.5px; color: var(--red); display: none; }
.field.err .emsg { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-foot p { font-size: 12.5px; line-height: 19px; color: var(--muted-2); max-width: 360px; }
.form-foot .btn { margin-left: auto; }

/* ---------- Demo call slot picker: month calendar + time chips ---------- */
.slot-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; font-weight: 500; color: var(--fg-2); }
.slot-label .opt { font-size: 12.5px; font-weight: 400; color: var(--muted-3); }
.slot-picker {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.field.err .slot-picker { border-color: rgba(220,38,38,.6); }
.slot-cal { padding: 16px; background: var(--surface); border-right: 1px solid var(--border); }
.slot-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.slot-cal-head strong { font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.slot-nav { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); cursor: pointer; transition: background .15s, opacity .15s; }
.slot-nav:hover:not(:disabled) { background: var(--bg-soft); }
.slot-nav:disabled { opacity: .35; cursor: default; }
.slot-nav .i { width: 15px; height: 15px; }
.slot-week, .slot-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.slot-week span { text-align: center; font-size: 11px; font-weight: 500; color: var(--muted-3); padding: 4px 0; }
.slot-day {
  position: relative; aspect-ratio: 1; min-height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--fg); cursor: pointer; transition: background .15s, color .15s;
}
.slot-day:hover:not(:disabled):not(.is-selected) { background: var(--bg-soft); }
.slot-day:disabled { color: var(--muted-3); opacity: .45; cursor: default; }
.slot-day.is-outside { visibility: hidden; }
.slot-day.is-open:not(.is-selected)::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent, #3b82f6); }
.slot-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px var(--border); }
.slot-day.is-selected { background: var(--dark); color: var(--on-dark); }
.slot-day:focus-visible, .slot-time:focus-visible, .slot-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slot-times { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.slot-times-title { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.slot-times-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.slot-time {
  height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: 13px; font-weight: 500; color: var(--fg); cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s, color .15s, border-color .15s;
}
.slot-time:hover:not(:disabled):not(.is-selected) { border-color: var(--fg-2); }
.slot-time:disabled { background: transparent; color: var(--muted-3); opacity: .55; cursor: default; }
.slot-time.is-booked { text-decoration: line-through; }
.slot-time.is-selected { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.slot-empty { grid-column: 1 / -1; font-size: 13px; line-height: 20px; color: var(--muted-2); }
.slot-summary { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.slot-summary .i { width: 15px; height: 15px; color: var(--muted-2); }
@media (max-width: 599px) {
  .slot-picker { grid-template-columns: 1fr; }
  .slot-cal { border-right: 0; border-bottom: 1px solid var(--border); }
  .slot-day { min-height: 38px; }
}
.form-success { display: none; text-align: center; padding: 32px 8px; }
.form-success.on { display: block; animation: fadeUp .4s ease; }
.form-success .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .ok .i { width: 26px; height: 26px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ws { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.1fr); }
}

@media (max-width: 960px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .container, .container-wide { padding: 0 16px; }
  .h1 { font-size: 2.6rem; line-height: 1.05; }
  .h2, .h2-lg { font-size: 2rem; line-height: 1.2; }
  .h3 { font-size: 1.75rem; }
  .lead { font-size: 16px; line-height: 28px; }
  .section { padding: 72px 0; }
  .desktop { aspect-ratio: auto; min-height: 0; height: 600px; border-radius: 18px; }
  .app-window { width: calc(100% - 20px); top: 42px; height: calc(100% - 128px); }
  .ws { grid-template-columns: 1fr; }
  .ws-col.ws-left, .ws-col.ws-nav { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-cell { padding: 36px 20px; }
  .bento-cell:nth-child(odd) { border-right: 0; }
  .bento-cell:nth-child(n+2) { border-top: 1px solid var(--border); }
  .bento-visual { height: auto; min-height: 240px; }
  .cards-4 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .faq summary { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 64px; }
  .fields { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .marquee-wrap { padding: 24px 0 48px; }
  .mchip { height: 48px; font-size: 14px; }
}

/* =========================================================
   Dashboard-faithful mock-ups (mirror the Doxo dashboard UI)
   ========================================================= */
.ws-col.ws-nav { padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg-soft); }
.ws-nav span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted-2); }
.ws-nav span.on { background: var(--accent-soft); color: var(--accent-ink); }
.ws-nav .i { width: 15px; height: 15px; }
.ws-nav .clinic-logo { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: #fff; padding: 4px; object-fit: contain; box-sizing: border-box; margin-bottom: 6px; }

.panel { border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border-2); padding: 10px 12px; margin-bottom: 8px; }
.panel-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.panel-h .i { width: 14px; height: 14px; color: var(--accent); }
.panel .k { font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.panel .v { color: var(--fg-2); }
.file-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); font-size: 10.5px; margin: 4px 4px 0 0; }

.timer-bar { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.timer-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 500; box-shadow: 0 6px 14px -6px rgba(59,130,246,.7); }
.timer-pill .pause { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 9px; }
.timer-pill .gen { padding: 0 10px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; }
.snap-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.snap-h .i { color: var(--accent); width: 15px; height: 15px; }
.snap-sec { margin-bottom: 10px; }
.snap-sec .t { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; margin-bottom: 5px; }
.snap-sec .t .i { width: 13px; height: 13px; color: var(--accent); }
.snap-box { border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; background: var(--surface); color: var(--fg-2); font-size: 11.5px; line-height: 17px; }
.snap-box ul { list-style: disc; padding-left: 16px; }
.med-grid { display: grid; grid-template-columns: 1.5fr .9fr .8fr; gap: 5px; margin-bottom: 6px; }
.med-grid span { border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; background: var(--surface); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.med-grid span.muted { color: var(--muted-3); }

/* Report document */
.report { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 11px; line-height: 16px; box-shadow: var(--shadow); text-align: left; }
.report .rh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.report .rlogo { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.report .rsec { color: var(--accent-ink); font-weight: 600; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; margin: 8px 0 3px; }
.report table { width: 100%; table-layout: fixed; word-break: break-word; border-collapse: collapse; font-size: 10.5px; margin-top: 4px; }
.report th { background: var(--bg-muted); font-weight: 600; padding: 4px 6px; text-align: left; border: 1px solid var(--border); }
.report td { padding: 4px 6px; border: 1px solid var(--border); }
.report-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.report-actions span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 11px; font-weight: 500; }
.report-actions span.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 767px) {
  .ws-col.ws-nav { display: none !important; }
  .med-grid { grid-template-columns: 1.4fr 1fr; }
  .med-grid span:nth-child(3n) { display: none; }
}

.form-error { color: var(--red); font-size: 13px; width: 100%; }
button[disabled] { opacity: .6; cursor: progress; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--dark); color: var(--on-dark); font-size: 14px; font-weight: 500; transition: top .15s; }
.skip-link:focus { top: 12px; }

/* Live listening / ambient documentation */
.listen { text-align: left; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(59,130,246,.35); box-shadow: 0 0 0 4px rgba(59,130,246,.08); font-size: 12px; color: var(--accent-ink); font-weight: 500; white-space: nowrap; overflow: hidden; }
.listen .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; flex-shrink: 0; }
.listen .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: var(--accent); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 6px; animation-delay: 0s; } .wave i:nth-child(2) { height: 14px; animation-delay: .1s; }
.wave i:nth-child(3) { height: 9px; animation-delay: .2s; } .wave i:nth-child(4) { height: 16px; animation-delay: .3s; }
.wave i:nth-child(5) { height: 7px; animation-delay: .4s; } .wave i:nth-child(6) { height: 12px; animation-delay: .5s; }
.tline { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 5px 0; font-size: 12px; line-height: 17px; color: var(--fg-2); border-top: 1px dashed var(--border); }
.tline:first-of-type { border-top: 0; }
.tline b { font-size: 10.5px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; padding-top: 1px; }
.tline.dr b { color: var(--accent-ink); }
.captured { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: var(--green-soft); color: #15803d; font-size: 10px; font-weight: 500; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.captured::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.arrow-down { display: flex; justify-content: center; color: var(--muted-3); margin: 6px 0; }

/* Hero: workspace window without menu bar / dock */
.desktop .app-window { top: 32px; height: calc(100% - 64px); }
@media (max-width: 767px) { .desktop .app-window { top: 14px; height: calc(100% - 28px); } }
.bento-cell p { max-width: 440px; }

/* WhatsApp: payment request + paid receipt + document bubbles */
.bub .wa-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 7px -9px -5px; padding: 8px; border-top: 1px solid rgba(0,0,0,.08); color: #0b7a6e; font-weight: 600; font-size: 12.5px; }
.bub .wa-btn .i { width: 13px; height: 13px; }
.bub .pay-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: rgba(0,0,0,.035); margin-bottom: 4px; }
.bub .pay-card .amt { font-size: 15px; font-weight: 700; }
.bub .pay-card .sub { font-size: 10.5px; color: rgba(0,0,0,.5); }
.bub .methods { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.bub .methods span { font-size: 9.5px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.05); color: rgba(0,0,0,.6); }
.paid-tick { display: inline-flex; align-items: center; gap: 5px; color: #15803d; font-weight: 600; }
.paid-tick .i { width: 13px; height: 13px; stroke-width: 3; }
.wa-sys { align-self: center; font-size: 10.5px; padding: 3px 9px; border-radius: 7px; background: #e1f2fb; color: #47606b; }
.ai-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: linear-gradient(90deg, #e8f0fe, #f1e8fe); color: #4338ca; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.ai-tag .i { width: 11px; height: 11px; }

/* Footer: stacked Doxo logo at the bottom of the page */
/* Wordmark shows its top 70% and is clipped at the bottom edge of the page */
.footer-logo { margin-top: 56px; color: #fff; overflow: hidden; aspect-ratio: 105 / 17.5; }
.footer-logo svg { display: block; width: 100%; height: auto; opacity: .16;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,.35));
          mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,.35)); }

/* ---------- Hero: live AI Scribe demo ---------- */
.ws-col.ws-left { display: flex; flex-direction: column; gap: 8px; background: var(--ws-left); min-height: 0; }
.ws-col.ws-left .panel { background: var(--surface); border-color: rgba(0,0,0,.06); margin: 0; }
.ws-summary .v { font-size: 12px; }
.wa-src { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; color: #0b7a6e; }
.wa-src .i { width: 11px; height: 11px; color: #0b7a6e; }
.transcript { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tscroll { flex: 1; min-height: 0; overflow: hidden; scroll-behavior: smooth; }
.tline span[lang="hi"] { font-family: "Noto Sans Devanagari", var(--font); }
.ws-left .timer-bar { margin-top: 0; }
.ws-right { overflow: hidden; }
.snap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.snap-grid .span2 { grid-column: 1 / -1; }
.snap-grid .snap-sec { margin: 0; min-width: 0; }
.snap-grid .snap-box { min-height: 34px; }
.snap-grid .snap-box ul { padding-left: 14px; }
.snap-grid .med-grid { margin-bottom: 4px; }

/* Scripted states (set by JS only) */
.scribe-on .tline.pending, .scribe-on [data-at].pending { display: none; }
.scribe-on .snap-sec .captured { opacity: 0; transition: opacity .3s; }
.scribe-on .snap-sec.hot .captured { opacity: 1; }
.scribe-on .snap-sec.empty .snap-box { display: none; }
.scribe-on .snap-sec.empty::after { content: ""; display: block; height: 30px; border-radius: 10px; border: 1px dashed var(--border);
  background: linear-gradient(90deg, var(--bg-muted) 0%, var(--bg-soft) 50%, var(--bg-muted) 100%); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
.scribe-on [data-at].just { animation: capIn .6s ease; }
.scribe-on .snap-sec.hot .snap-box, .scribe-on .snap-sec.hot .med-grid span { border-color: rgba(34,197,94,.55); box-shadow: 0 0 0 3px rgba(34,197,94,.10); transition: box-shadow .3s, border-color .3s; }
@keyframes capIn { from { opacity: 0; transform: translateY(4px); background: #dcfce7; } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.tline.typing span::after { content: ""; display: inline-block; width: 1.5px; height: 12px; background: var(--fg); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.tline.fresh { animation: capIn .35s ease; }
.scribe-done .listen .dot { animation: none; background: var(--green); }
.scribe-done .listen .wave { display: none; }
.scribe-done .timer-pill { animation: pulseBlue 1.6s ease-in-out 3; }
@keyframes pulseBlue { 50% { box-shadow: 0 0 0 6px rgba(59,130,246,.25); } }

@media (max-width: 767px) {
  .ws { grid-template-rows: 210px minmax(0, 1fr); }
  .ws-col.ws-left { padding: 10px; }
  .ws-summary, .ws-left .timer-bar, .ws-left .listen, .ws-left .chatbox { display: none; }
  .ws-col + .ws-col { border-left: 0; border-top: 1px solid var(--border); }
  .snap-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tscroll { scroll-behavior: auto; } }

.ws-left .tline { grid-template-columns: 74px 1fr; }
.ws-left .tline b { white-space: nowrap; }

/* Hero: chat box, scribe status, report dialog, animated cursor */
.chatbox { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--muted-3); font-size: 12.5px; }
.chatbox .grow { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-btn { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--secondary); color: var(--muted); flex-shrink: 0; }
.cb-btn .i { width: 14px; height: 14px; }
.cb-btn.send { background: var(--dark); color: var(--on-dark); }
.scribe-tag { gap: 6px; }
.scribe-tag .rec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.scribe-done .scribe-tag .rec-dot { background: var(--green); animation: none; }
.timer-pill .gen { transition: transform .12s, background .12s; }
.timer-pill.pressed .gen { transform: scale(.94); background: rgba(255,255,255,.4); }

.rmodal { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15, 18, 30, .28); backdrop-filter: blur(2px); animation: fadeIn .25s ease; }
.rmodal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.rdialog { width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); overflow: hidden; animation: popIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.rdh { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-2); font-size: 13px; }
.rx { color: var(--muted-2); font-size: 18px; line-height: 1; }
.rbody { padding: 14px 16px; background: var(--bg-soft); overflow: hidden; min-height: 0; flex: 1; }
.rbody .report { box-shadow: none; animation: capIn .45s ease; }
.rgen { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 60px 0; font-size: 12.5px; color: var(--muted); }
.rgen[hidden] { display: none; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #dbeafe; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rfoot { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border-2); font-size: 11.5px; }
.rfoot span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; }
.rfoot .sp { flex: 1; border: 0; padding: 0; }
.rfoot .rsend { background: var(--accent); color: #fff; border-color: var(--accent); transition: transform .12s, background .2s; }
.rfoot .rsend.pressed { transform: scale(.94); }
.rfoot .rsend.sent { background: var(--green); border-color: var(--green); }
.rtoast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #111; color: #fff; font-size: 12.5px; font-weight: 500; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); animation: popIn .3s ease; white-space: nowrap; }
.rtoast[hidden] { display: none; }
.rtoast .i { width: 14px; height: 14px; color: #4ade80; stroke-width: 3; }

.fake-cursor { position: absolute; left: 0; top: 0; z-index: 10; width: 24px; height: 24px; pointer-events: none; transition: transform .9s cubic-bezier(.45,.05,.25,1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.fake-cursor[hidden] { display: none; }
.fake-cursor svg { width: 24px; height: 24px; transition: transform .12s; transform-origin: 4px 3px; }
.fake-cursor.click svg { transform: scale(.82); }
.fake-cursor.click::after { content: ""; position: absolute; left: -8px; top: -9px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(59,130,246,.7); animation: ripple .5s ease-out forwards; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Wordmark next to the square icon */
.brand-word { height: 17px; width: auto; color: var(--fg); display: block; }
.site-footer .brand-word { color: #fff; }


/* Languages section: pills with each language's first letter in its own script */
.lang-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; max-width: 1000px; margin: 56px auto 0; }
.lang-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 6px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 22px -8px rgba(0,0,0,.16);
  font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); transform: rotate(var(--r, 0deg)); transition: transform .25s; }
.lang-chip:hover { transform: rotate(0) translateY(-2px); }
.lang-ec { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 500; line-height: 1;
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Noto Sans", system-ui, sans-serif;
  background: var(--border-solid); color: var(--fg); }
@media (max-width: 767px) {
  .lang-chips { gap: 10px; margin-top: 36px; }
  .lang-chip { height: 38px; font-size: 14px; gap: 8px; padding: 0 14px 0 5px; }
  .lang-ec { width: 28px; height: 28px; font-size: 14px; }
}

/* Languages section: dotted map of India behind the content */
.lang-section { padding: 72px 0 96px; }
.india-map { position: absolute; z-index: -1; left: 50%; top: 0; bottom: -30px; aspect-ratio: 28.1 / 30.2; transform: translateX(-50%);
  background: url("/home/india-dots.svg") center / contain no-repeat; opacity: .32;
  -webkit-mask-image: radial-gradient(70% 62% at 50% 48%, #000 55%, transparent 100%);
          mask-image: radial-gradient(70% 62% at 50% 48%, #000 55%, transparent 100%); }
.lang-section .h2-lg { margin-top: 40px; max-width: 24ch; }
@media (max-width: 767px) { .india-map { top: 40px; bottom: auto; width: 125%; } }

/* Footer: light / dark switch */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.08); }
.theme-switch button { width: 28px; height: 26px; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: rgba(255,255,255,.6); cursor: pointer; transition: background .2s, color .2s; }
.theme-switch button:hover { color: #fff; }
.theme-switch button.on { background: #fff; color: #0b0a0a; }
.theme-switch .i { width: 14px; height: 14px; }

:root[data-theme="dark"] .india-map { opacity: .16; }

/* ---------- Book a demo (bottom of homepage) ---------- */
.section.demo-section { padding: 24px 0 120px; scroll-margin-top: 72px; }
/* Introduction on the left, the request form (664px wide) on the right */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 664px; align-items: stretch; gap: 48px; }
.demo-grid .form-card { box-shadow: var(--shadow-sm, none); }
.demo-intro { align-self: center; }
.demo-intro .h2 { margin-top: 20px; }
.demo-intro .sub { margin-top: 20px; max-width: 420px; }
/* Below 1200px the introduction would get too narrow beside a 664px form, so they stack */
@media (max-width: 1199px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; } }


/* ---------- Story: report generation and send (chapter 8) ---------- */
.morph-gen { display: flex; justify-content: center; margin-top: 12px; }
.report-actions span { transition: transform .12s, background .2s; }
.report-actions span.pressed { transform: scale(.94); }
.report-actions span.sent { background: #16a34a; border-color: #16a34a; color: #fff; }
.morph-toast { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 14px; border-radius: 12px; background: #111; color: #fff; font-size: 12.5px; font-weight: 500; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); animation: popIn .3s ease; }
.morph-toast[hidden] { display: none; }
.morph-toast .i { width: 14px; height: 14px; color: #4ade80; stroke-width: 3; }
:root[data-theme="dark"] .morph-toast { background: #fafafa; color: #0b0a0a; }
:root[data-theme="dark"] .morph-toast .i { color: #16a34a; }



/* Hero preview wallpaper (replaces the CSS gradient and its stripe overlay) */
.desktop { background: #2a4fb8 url("/home/hero-wallpaper.webp") center / cover no-repeat; }
.desktop::after { display: none; }

/* ---------- Hero: pinned zoom (initStagePin) ---------- */
.pin-on .stage-pin { height: calc(var(--fh) + 405vh); }
.pin-on .stage-sticky { position: sticky; top: calc((100vh - var(--fh)) / 2); z-index: 5; }
.pin-on .desktop { transform-origin: 50% 50%; }

/* ---------- Hero demo: consultations list (start and end of the loop) ---------- */
.ws { position: relative; }
.ws-list { position: absolute; top: 0; right: 0; bottom: 0; left: 52px; z-index: 3; display: none; flex-direction: column; background: var(--surface); padding: 16px 18px; text-align: left; transition: opacity .45s ease, transform .45s ease; }
.scribe-on .ws-list { display: flex; }
.scribe-on:not(.view-list) .ws-list { opacity: 0; transform: translateX(-24px) scale(.99); pointer-events: none; }

.cl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.cl-table th { text-align: left; font-size: 11px; font-weight: 500; color: var(--muted-2); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.cl-table td { padding: 12px; border-bottom: 1px solid var(--border-2); color: var(--fg-2); vertical-align: middle; transition: background .25s; }
.cl-table td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-table td b { display: block; font-weight: 600; color: var(--fg); }
.cl-table td b + span { font-size: 11px; color: var(--muted-2); }
.cl-table td:last-child { text-align: right; width: 1%; white-space: nowrap; }
.cl-table tr.hover td { background: var(--accent-soft); }
.cl-table tr.next td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.cl-st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--amber-soft); color: #b45309; }
.cl-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cl-st.ok { background: var(--green-soft); color: var(--green); }
.cl-table tr.done .cl-st { animation: popIn .35s ease; }
.cl-start { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 500; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.cl-start .i { width: 13px; height: 13px; }
.cl-table tr.hover .cl-start { opacity: 1; transform: none; }
.cl-start.pressed { transform: scale(.94); }
.cl-table tr.done .cl-start { visibility: hidden; }
.view-list .win-timer { visibility: hidden; }
@media (max-width: 767px) {
  .ws-list { left: 0; padding: 12px; }
  .cl-reason { display: none; }
  .cl-table td, .cl-table th { padding: 10px 8px; }
  .cl-start { font-size: 0; gap: 0; padding: 0 9px; }
  .cl-start .i { width: 14px; height: 14px; }
}

/* ---------- Hero demo as a product video: captions, richer list ---------- */
.desktop .app-window { transition: filter .35s ease; }

/* Big centred captions */
.vcap { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; pointer-events: none; text-align: center; opacity: 0; transition: opacity .3s ease; background: #000; }
.vcap.on { opacity: 1; }
.vcap-t { font-size: clamp(30px, 4.2vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .22), 0 8px 32px rgba(0, 0, 0, .35); }
.vcap-s { font-size: clamp(14px, 1.4vw, 20px); font-weight: 500; color: rgba(255, 255, 255, .82); }
.vcap-s:empty { display: none; }
.vcap.on .vcap-s { animation: capTitle .55s .08s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes capTitle { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Richer consultations list */
.cl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cl-stats div { padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border-2); }
.cl-stats span { display: block; font-size: 11px; color: var(--muted-2); }
.cl-stats b { display: block; margin-top: 2px; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.cl-table td { padding: 10px 12px; }
.cl-p { display: flex; align-items: center; gap: 10px; }
.cl-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); }
.cl-av.a2 { background: linear-gradient(135deg, #f97316, #fb7185); }
.cl-av.a3 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.cl-av.a4 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.cl-av.a5 { background: linear-gradient(135deg, #64748b, #0ea5e9); }
.cl-next { display: none; margin-left: 6px; vertical-align: 1px; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; animation: pulseBlue 1.6s ease-in-out infinite; }
.cl-table tr.next .cl-next { display: inline-block; }
.cl-table tr.next td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.cl-wa { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; color: #0b7a6e; }
.cl-wa .i { width: 11px; height: 11px; }
.cl-pay { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 500; background: var(--secondary); color: var(--fg-2); }
.cl-pay.wait { color: #b45309; background: var(--amber-soft); }
.cl-st { height: 24px; padding: 0 10px; font-size: 11.5px; }
.cl-stats b[data-sdone], .cl-stats b[data-ssent] { transition: color .3s; }
@media (max-width: 1100px) { .cl-pay-h { display: none; } }
@media (max-width: 767px) {
  .cl-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .cl-stats div:nth-child(n+3) { display: none; }
  .cl-av { width: 26px; height: 26px; }
  .cl-wa { display: none; }
}
@media (max-width: 767px) { .cl-table th:first-child, .cl-table td:first-child { display: none; } .cl-table tr.next td:nth-child(2) { box-shadow: inset 3px 0 0 var(--accent); } }

/* Caption words: each one fades up out of a blur, then the line tightens */
.vcap-t { text-shadow: none; letter-spacing: -0.04em; }
.vcap-t .w { display: inline-block; }
.vcap-t .w > span { display: inline-block; opacity: 0; }
.vcap.on .vcap-t { animation: capTrack 1.8s cubic-bezier(.16, 1, .3, 1) both; }
.vcap.on .vcap-t .w > span { animation: capWord 1.3s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes capWord {
  from { opacity: 0; transform: translateY(.3em); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes capTrack { from { letter-spacing: .02em; } to { letter-spacing: -0.04em; } }
.vcap { border-radius: inherit; }
/* Clean hand-off between the list and the consultation: no overlapping cross-fade */
.scribe-on .ws > .ws-col:not(.ws-nav) { transition: opacity .45s ease .35s; }
.scribe-on.view-list .ws > .ws-col:not(.ws-nav) { opacity: 0; transition: opacity .2s ease; }
.scribe-on .ws-list { transition: opacity .35s ease, transform .35s ease; }
/* Each medicine on one row: name · dose · frequency · meal timing · duration */
.med-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
.med-grid span { padding: 5px 7px; }
/* Narrow cards: cells sized to their text so all five still fit on one row */
.bento-visual .med-grid { grid-template-columns: auto auto auto auto auto; justify-content: start; gap: 3px; }
.bento-visual .med-grid span { padding: 4px 6px; font-size: 10.5px; }
@media (max-width: 1023px) {
  .med-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr); }
  .med-grid span:nth-child(n+4) { display: none; }
  .med-grid span:nth-child(3n) { display: block; }
}

/* Letter spacing: -5% on headings, -2% on all other marketing text. The product mockups (hero app window,
   bento cards, workflow panes) keep their own spacing so they still read like the real app. */
:where(body, body :not(.desktop, .bento-visual, .visual-frame, .desktop *, .bento-visual *, .visual-frame *, :is(h1, h2, h3, h4, h5, h6) *)) { letter-spacing: -0.02em; }
:where(h1, h2, h3, h4, h5, h6):not(.desktop *, .bento-visual *, .visual-frame *) { letter-spacing: -0.05em; }
.desktop, .bento-visual, .visual-frame { letter-spacing: normal; }

/* ================= Story: how Doxo runs a consultation (initStory in main.js) =================
   Pinned; each chapter gets one screen of scrolling. Text on the left, the picture on the right. */
.journey { --pin-h: min(560px, calc(100vh - var(--header-h) - 120px)); --pin-top: calc(var(--header-h) + (100vh - var(--header-h) - var(--pin-h)) / 2);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; align-content: start; }
.journey.live { height: calc(var(--pin-h) + var(--chapters, 1) * 100vh); }
.story-text, .story-stage { position: sticky; top: var(--pin-top); height: var(--pin-h); }
.story-stage .visual-frame { height: 100%; }

/* Left: one progress line that stays put, and one chapter at a time below it.
   Every chapter starts at the same height, so nothing jumps between chapters. */
.story-progress { position: absolute; top: calc(var(--pin-h) / 2 - 170px); left: 0; display: flex; gap: 3px; }
.story-progress span { position: relative; width: 11px; height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.story-progress span::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(var(--f, 0)); }
.story-step { display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; }
.journey.live .story-step { position: absolute; inset: 0; padding-top: calc(var(--pin-h) / 2 - 130px); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s ease, transform .45s ease, visibility 0s linear .45s; }
.journey.live .story-step.active { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease .08s, transform .45s ease .08s, visibility 0s; }
.story-step .h3 .hl { color: var(--muted-3); }
.story-step .sub { max-width: 440px; }

/* Right: scenes swap in place; pieces inside them appear, type and press as the story moves */
.journey .scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 36px; }
.journey.live [data-at], .journey.live [data-until] { transition: opacity .35s ease, transform .4s ease; }
.journey.live [data-at]:not(.on), .journey.live [data-until]:not(.on) { opacity: 0; transform: translateY(8px); pointer-events: none; }
.journey.live .scene:not(.on) { transform: translateY(14px) scale(.985); }
.journey.live .swap:not(.on) { display: none; }
.journey [data-type] .ghost { visibility: hidden; }
.journey [data-type] .caret { display: none; }
/* The caret is a zero-width inline border, so it never opens a line break inside a word */
.journey [data-type].is-typing .caret { display: inline; border-left: 1.5px solid var(--accent); margin-right: -1.5px; animation: pulse 1s infinite; }

/* Chapter 1: the call */
.call-card { width: 100%; max-width: 360px; height: 356px; display: flex; flex-direction: column; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; font-size: 13px; line-height: 19px; }
.call-card .avatar { width: 40px; height: 40px; font-size: 13px; }
.call-card b { display: block; font-size: 14px; font-weight: 600; }
.call-num { font-size: 11.5px; color: var(--muted-2); }
/* Ringing: everything centred, big buttons at the bottom */
.call-ring { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.call-ring-state { font-size: 12.5px; color: var(--muted); }
.call-who { display: flex; align-items: center; gap: 14px; }
.call-who .avatar { width: 60px; height: 60px; font-size: 18px; }
.call-who b { font-size: 19px; line-height: 26px; }
.call-who .call-num { font-size: 13.5px; }
.call-actions { display: flex; justify-content: center; gap: 72px; }
.call-btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .15s; }
.call-btn .i { width: 22px; height: 22px; }
.call-btn.no { background: #ef2b2d; }
.call-btn.no .i { transform: rotate(135deg); }
.call-btn.yes { background: #16a34a; animation: ringPulse 1.2s ease-in-out infinite; }
.call-btn.yes.flag { transform: scale(.88); animation: none; }
@keyframes ringPulse { 50% { box-shadow: 0 0 0 10px rgba(22,163,74,.18); } }
/* Answered: the call bar, a sound wave and the conversation */
.journey.live .call-live.on { animation: popIn .3s ease; }
.call-head { display: flex; align-items: center; gap: 10px; }
.call-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.call-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
.call-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 28px; margin-top: 12px; }
.call-wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--muted-3); animation: wave 1.1s ease-in-out infinite; }
.call-wave i:nth-child(3n) { animation-delay: -.3s; } .call-wave i:nth-child(3n+1) { animation-delay: -.6s; } .call-wave i:nth-child(4n) { animation-delay: -.8s; }
@keyframes wave { 50% { height: 100%; } }
.call-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.call-line { padding: 8px 11px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border-2); max-width: 88%; }
.call-line .who { display: block; font-size: 10.5px; line-height: 14px; color: var(--muted-2); font-weight: 500; }
.call-line p { margin: 0; }
.call-line.us { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.call-line.key p { font-weight: 600; color: var(--accent-ink); }

/* Chapter 2: the booking */
.oncall-chip { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.journey .ui-input { justify-content: flex-start; }
.story-press { position: relative; }
.story-press .ui-btn { transition: transform .15s, filter .15s; }
.story-press .ui-btn.flag { transform: scale(.97); filter: brightness(.9); }
.story-cursor { position: absolute; left: 58%; top: 22px; width: 24px; height: 24px; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.journey.live .story-cursor:not(.on) { transform: translate(70px, 60px); }
.journey.live .story-cursor { transition: opacity .3s ease, transform .6s cubic-bezier(.45,.05,.25,1); }
.story-cursor svg { width: 24px; height: 24px; transition: transform .12s; transform-origin: 4px 3px; }
.story-cursor.flag svg { transform: scale(.82); }

/* Chapter 3: Sonali's phone */
.phone { width: 250px; height: 480px; max-height: 100%; padding: 8px; border-radius: 40px; background: #111; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06); }
:root[data-theme="dark"] .phone { box-shadow: 0 30px 60px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.14); }
.phone-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #dbe4f5; }
.phone-island { position: absolute; top: 8px; left: 50%; z-index: 5; width: 72px; height: 20px; border-radius: 12px; background: #000; transform: translateX(-50%); }
.phone-home { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 64px; color: #fff;
  background: linear-gradient(160deg, #6b8bd6 0%, #b39ddb 55%, #f0a27a 100%); }
.phone-clock { font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.phone-date { margin-top: 6px; font-size: 12px; font-weight: 500; opacity: .9; }
.phone-notif { position: absolute; left: 10px; right: 10px; top: 40px; z-index: 3; display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-radius: 16px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #18181b; font-size: 11.5px; line-height: 15px; text-align: left; box-shadow: 0 8px 24px -8px rgba(0,0,0,.3); }
.phone-notif .avatar { width: 26px; height: 26px; font-size: 11px; background: #075e54; }
.phone-notif b { display: block; font-size: 12px; }
.journey.live .phone-notif:not(.on) { transform: translateY(-16px); }
.phone .wa { position: absolute; inset: 0; z-index: 4; max-width: none; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.journey.live .phone .wa[data-at]:not(.on) { transform: translateY(40px); }
.phone .wa-top { padding-top: 34px; }
.phone .wa-body { flex: 1; font-size: 12px; line-height: 16px; }

/* Chat messages take no space until they arrive, so older ones scroll up out of view */
.journey.live .pop:not(.on) { display: none; }
.journey.live .pop.on { animation: popIn .3s ease; }
.phone .wa-body { min-height: 0; overflow: hidden; justify-content: flex-end; padding-bottom: 26px; }
.phone .wa-btn { transition: background .15s; }
.phone .wa-btn.flag { background: rgba(11,122,110,.12); }

/* Chapter 4: the UPI payment sheet */
.pay-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px 18px; border-radius: 22px 22px 0 0; background: #fff; color: #18181b; text-align: center;
  box-shadow: 0 -10px 30px -10px rgba(0,0,0,.3); }
.journey.live .pay-sheet:not(.on) { transform: translateY(100%); }
.ps-grab { display: block; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #d4d4d8; }
.ps-to { font-size: 11.5px; color: #71717a; }
.ps-to b { color: #18181b; }
.ps-amt { margin-top: 2px; font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.ps-sub { font-size: 10.5px; color: #71717a; }
.ps-opts { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; text-align: left; }
.ps-opts span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid #e4e4e7; font-size: 11.5px; font-weight: 500; }
.ps-opts span.sel { border-color: #0b7a6e; box-shadow: 0 0 0 2px rgba(11,122,110,.15); }
.ps-opts .i { width: 14px; height: 14px; color: #71717a; }
.ps-btn { height: 38px; border-radius: 12px; display: grid; place-items: center; background: #0b7a6e; color: #fff; font-size: 12.5px; font-weight: 600; transition: transform .15s, background .2s; }
.ps-btn > span { display: inline-flex; align-items: center; gap: 6px; }
.ps-btn .i { width: 14px; height: 14px; stroke-width: 3; }
.ps-btn.flag { transform: scale(.97); background: #16a34a; }

/* Two views in the same spot: the first gives way to the second */
.stack1 { display: grid; }
.stack1 > * { grid-area: 1 / 1; align-self: center; }
.journey.live .st-gen { transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.journey.live .st-gen:not(.on) { transform: scale(.96); filter: blur(4px); }

/* Chapters 7 and 8: the consultation and the report */
/* The transcript is a fixed window: new lines push older ones up and out of view */
.journey .tscript { height: 128px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22px); mask-image: linear-gradient(to bottom, transparent, #000 22px); }
.journey .tline { border-top: 1px dashed var(--border); }
.journey .notes-card .snap-sec { margin-bottom: 6px; }
.journey .notes-card .snap-sec .t { margin-bottom: 3px; }
.journey .scene .arrow-down { margin: 2px 0; }
.journey .notes-card .snap-box { min-height: 31px; }
.journey .notes-card .snap-box ul { padding-left: 14px; margin: 0; }
.journey .scribe-tag.done .rec-dot { background: var(--green); animation: none; }
.journey .timer-pill .gen { transition: transform .12s, background .12s; }
.journey .timer-pill.flag .gen { transform: scale(.94); background: rgba(255,255,255,.4); }
.journey .report-actions span.primary { transition: transform .12s, background .2s, border-color .2s; }
.journey .report-actions span.primary.flag { background: #16a34a; border-color: #16a34a; transform: scale(.96); }
.journey .report-actions.story-press .story-cursor { left: 62%; top: 12px; }
.journey .morph-gen .story-cursor { left: 72%; top: 14px; }

/* Chapter 9: her reply */
.journey .quick-replies { align-self: flex-start; }
.journey .quick-replies span { transition: background .15s, color .15s; }
.journey .quick-replies span.flag { background: #0b7a6e; color: #fff; }

/* Phones and tablets: the picture pins at the top and the chapter text sits under it */
@media (max-width: 1023px) {
  .journey { --pin-top: calc(var(--header-h) + 12px); --pin-h: min(470px, 56vh); grid-template-columns: minmax(0, 1fr); gap: 0; }
  .journey.live { height: calc(var(--pin-h) + 34vh + var(--chapters, 1) * 100vh); }
  .story-stage { order: -1; z-index: 1; }
  .story-text { top: calc(var(--pin-top) + var(--pin-h) + 16px); height: 34vh; }
  .story-step { gap: 10px; }
  .journey.live .story-step { padding-top: 34px; }
  .story-progress { top: 12px; }
  .story-step .checks { display: none; }
  .story-step .h3 { font-size: 1.5rem; }
  .journey .scene { padding: 14px; }
  .journey .scene > * { transform: scale(.86); }
}
@media (prefers-reduced-motion: reduce) {
  .journey.live [data-at], .journey.live [data-until], .journey.live .story-step, .journey.live .story-cursor { transition: none; }
  .call-wave i, .call-btn.yes, .call-dot { animation: none; }
}

/* ---------- Consultations list: refined dashboard ---------- */
.ws-list { padding: 18px 22px; gap: 0; }
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cl-h1 { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.cl-sub { margin-top: 2px; font-size: 11.5px; color: var(--muted-2); }
.cl-tools { display: flex; align-items: center; gap: 8px; }
.cl-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--secondary); }
.cl-seg span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 8px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.cl-seg span.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--border-2); }
.cl-seg b { font-weight: 500; font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.cl-daypick { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 11.5px; font-weight: 500; color: var(--fg); }
.cl-daypick .i { width: 13px; height: 13px; color: var(--muted-2); }

.cl-stats { gap: 10px; margin-bottom: 14px; }
.cl-stats > div { position: relative; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.cl-stats .cl-si { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--secondary); color: var(--muted); }
.cl-si .i { width: 13px; height: 13px; }
.cl-si.ok { background: var(--green-soft); color: var(--green); }
.cl-stats .cl-sl { display: block; font-size: 11px; font-weight: 500; color: var(--muted-2); }
.cl-stats b { margin-top: 4px; font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.03em; }
.cl-stats em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.cl-stats em.cl-bar { height: 4px; margin-top: 10px; border-radius: 99px; background: var(--secondary); overflow: hidden; }
.cl-stats em.cl-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .6s cubic-bezier(.2,.8,.2,1); }

.cl-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cl-table th { padding: 9px 14px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.cl-table td { padding: 8px 14px; font-size: 12px; border-bottom: 1px solid var(--border-2); }
.cl-table tr:last-child td { border-bottom: 0; }
.cl-table td:first-child { font-size: 11.5px; color: var(--muted-2); font-weight: 500; }
.cl-table td b { font-weight: 600; font-size: 12.5px; }
.cl-av { width: 26px; height: 26px; font-size: 9.5px; }
.cl-p { gap: 9px; }
.cl-table tr.hover td { background: var(--accent-soft); }
.cl-table tr.next td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.cl-next { background: var(--accent-soft); color: var(--accent-ink); animation: none; font-weight: 600; padding: 1px 7px; }
.cl-wa { color: var(--muted-2); }
.cl-wa .i { color: #16a34a; }

/* Understated payment and status: dot + text, no loud fills */
.cl-pay { height: auto; padding: 0; background: none; font-size: 11.5px; color: var(--fg-2); gap: 5px; }
.cl-pay::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.cl-pay.wait { background: none; color: #b45309; }
.cl-pay.wait::before { background: #fef3c7; box-shadow: inset 0 0 0 4px #fef3c7; background-image: radial-gradient(circle, #d97706 0 2.5px, transparent 3px); }
.cl-st { height: 22px; padding: 0 9px 0 8px; font-size: 11px; font-weight: 500; border-radius: 6px; background: var(--secondary); color: var(--muted); }
.cl-st::before { width: 6px; height: 6px; background: #94a3b8; }
.cl-st.ok { background: var(--green-soft); color: #15803d; }
.cl-st.ok::before { background: #22c55e; }
.cl-table tr.next .cl-st { background: var(--accent-soft); color: var(--accent-ink); }
.cl-table tr.next .cl-st::before { background: var(--accent); }
.cl-start { height: 26px; padding: 0 11px; border-radius: 8px; font-size: 11px; background: var(--dark); color: var(--on-dark); }
:root[data-theme="dark"] .cl-pay::before { background-color: rgba(34,197,94,.18); }
@media (max-width: 767px) {
  .ws-list { padding: 12px; }
  .cl-head { align-items: flex-start; }
  .cl-tools, .cl-sub { display: none; }
  .cl-stats > div { padding: 10px 12px; }
  .cl-stats .cl-si, .cl-stats em { display: none; }
  .cl-table td, .cl-table th { padding: 8px 10px; }
}
@media (max-width: 767px) {
  .cl-table td b { white-space: nowrap; }
  .cl-table .cl-next { display: none !important; }
  .cl-start { font-size: 0; gap: 0; padding: 0 8px; }
  .cl-start .i { width: 13px; height: 13px; }
}

/* Patient photos in the demo (dashboard rows, Sonali's call screen) */
img.cl-av, img.avatar { object-fit: cover; }

/* ---------- Languages: frosted pills that fly in and drift in a breeze ---------- */
.lang-chips { gap: 16px 12px; max-width: 1080px; }
.lang-chip { position: relative; display: inline-block; height: auto; padding: 0; background: none; box-shadow: none; border-radius: 999px;
  transform: rotate(var(--r, 0deg)); transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
/* Hover: the pill lifts gently and keeps its tilt */
.lang-chip:hover { transform: translateY(-8px) rotate(var(--r, 0deg)); }
.langs-wait .lang-chip { opacity: 0; }

.lang-face { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px 0 6px; box-sizing: border-box;
  border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 48px -30px rgba(15, 23, 42, .55);
  font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg);
  transition: box-shadow .5s ease;
  animation: langBreeze var(--bz-d, 5s) ease-in-out var(--bz-o, 0s) infinite alternate; }
.lang-chip:hover .lang-face { box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 26px 52px -26px rgba(15, 23, 42, .6); }
:root[data-theme="dark"] .lang-face { background: rgba(28, 28, 32, .88); border-color: rgba(255, 255, 255, .08); }
/* The breeze: each pill drifts on its own slow rhythm */
@keyframes langBreeze {
  from { translate: 0 calc(var(--bz-y, 4px) * -1); rotate: calc(var(--bz-r, .8deg) * -1); }
  to { translate: 0 var(--bz-y, 4px); rotate: var(--bz-r, .8deg); }
}
.lang-chip .lang-ec { width: 40px; height: 40px; flex-shrink: 0; font-size: 17px; }
@media (max-width: 767px) {
  .lang-face { height: 42px; font-size: 14px; gap: 8px; padding: 0 14px 0 5px; }
  .lang-chip .lang-ec { width: 32px; height: 32px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .lang-face { animation: none; } }

/* ---------- Languages: heading and paragraph switch to the hovered language ---------- */
/* Every language sits in the same grid cell: the block is always as tall as the
   tallest language, and each one is centred in it, so nothing ever moves */
.lang-copy { display: grid; }
.lc-layer { grid-area: 1 / 1; align-self: center; width: 100%; }
.lc-layer:not(.on) { pointer-events: none; }
.lc-layer:not(.on):not(.off) { visibility: hidden; }
.lc-layer:not([lang="en"]) .h2-lg { max-width: 32ch; }
.lc-layer .h2-lg { margin-left: auto; margin-right: auto; }
.lc-layer[lang]:not([lang="en"]) .h2-lg { letter-spacing: -0.01em; line-height: 1.3;
  font-family: var(--font), "Noto Sans Devanagari", "Noto Sans", "Nirmala UI", system-ui, sans-serif; }
.lc-layer[lang]:not([lang="en"]) .sub { letter-spacing: 0; line-height: 1.75; }
/* Words: the outgoing language blurs away upward, the incoming one rises in */
.lcw { display: inline-block; }
/* The old language leaves first (~0.5s), then the new one rises in, word by word */
.lc-layer.on .lcw { animation: lcIn 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0ms) + 450ms) both; }
.lc-layer.off .lcw { animation: lcOut .5s cubic-bezier(.4, 0, .6, 1) calc(var(--d, 0ms) * .2) both; }
.lang-copy:not(.touched) .lc-layer.on .lcw { animation: none; }
@keyframes lcIn { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes lcOut { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateY(-.35em); filter: blur(8px); } }
@media (prefers-reduced-motion: reduce) { .lcw { animation: none !important; } .lc-layer.off { display: none; } }

/* ---------- Languages: pinned for one screen of scrolling (initLangCopy) ---------- */
/* 100vh of section + four screens of held scrolling */
.lang-pin.pin-on { height: 500vh; }
.lang-pin.pin-on > .lang-section { position: sticky; top: 0; height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) 0 24px; }
/* The pill for the language on screen lifts and turns dark */
.lang-chip.lit { transform: translateY(-8px) rotate(var(--r, 0deg)); }
.lang-face { transition: box-shadow .5s ease, background .45s ease, color .45s ease, border-color .45s ease; }
.lang-chip.lit .lang-face { background: var(--dark); color: var(--on-dark); border-color: transparent;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .12), 0 22px 44px -22px rgba(15, 23, 42, .55); }
.lang-chip .lang-ec { transition: background .45s ease, color .45s ease; }
.lang-chip.lit .lang-ec { background: rgba(255, 255, 255, .14); color: var(--on-dark); }
:root[data-theme="dark"] .lang-chip.lit .lang-ec { background: rgba(0, 0, 0, .1); }
/* India map at half its previous size, centred behind the heading and pills */
.lang-section .india-map { top: 50%; bottom: auto; height: calc((100% + 30px) * .5); transform: translate(-50%, -50%); }
@media (max-width: 767px) { .lang-section .india-map { top: 50%; width: 62.5%; height: auto; } }
.lang-chip { cursor: pointer; outline: none; }
.lang-chip:focus-visible .lang-face { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

/* The footer sits behind the page; keep it hidden until the reader nears the end,
   so it can never flash through while scrolling fast */
.site-footer.far { visibility: hidden; }
/* After the sequence has played (or the reader turned back): a normal one-screen
   section with the same centred layout it had while pinned */
.lang-pin.pin-done > .lang-section { height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) 0 24px; }

