/* /showcase: every Payanam feature, staged (web/pages/showcase).
   Kolam & Kovil tokens (--kv-*) from app.css, so light and dark follow the
   theme toggle. Devices (browser window, phone) are drawn here in CSS; the
   screens inside are real captures, recordings or the live product. */

.sc {
  --sc-top: 68px;                 /* the site's sticky header */
  --sc-max: 1240px;
  --sc-ink: #141110;
  --sc-cream: #F3EBDD;
  --sc-zari: #F2C14E;
  --sc-zari-deep: #E0A526;
  --sc-oxide: #B3261E;
  --sc-display: "Inter", "Noto Sans Tamil", ui-sans-serif, system-ui, sans-serif;
  --sc-tamil: "Arima", "Noto Sans Tamil", ui-serif, serif;
  --acc: var(--kv-primary);
  color: var(--kv-text);
  background: var(--kv-page);
  overflow-x: clip;
}
.sc :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
.sc :where(ul, ol) { list-style: none; padding: 0; }
:where(.sc) a { color: inherit; }
.sc [id] { scroll-margin-top: calc(var(--sc-top) + 72px); }
.sc-wrap { max-width: var(--sc-max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .sc-wrap { padding: 0 2rem; } }

/* Chapter accents */
.sc-ch-traveller { --acc: #B3261E; --acc-2: #E0A526; }
.sc-ch-host      { --acc: #3F7D3A; --acc-2: #C9A227; }
.sc-ch-gate      { --acc: #0F6B5C; --acc-2: #5CC5B0; }
.sc-ch-admin     { --acc: #A3195B; --acc-2: #F2C14E; }
.sc-ch-state     { --acc: #94650A; --acc-2: #B3261E; }
.sc-ch-platform  { --acc: #6E2C1E; --acc-2: #0F6B5C; }
.dark .sc-ch-traveller { --acc: #FF8A7D; }
.dark .sc-ch-host      { --acc: #8CC37E; }
.dark .sc-ch-gate      { --acc: #5CC5B0; }
.dark .sc-ch-admin     { --acc: #F07AAE; }
.dark .sc-ch-state     { --acc: #F2C14E; }
.dark .sc-ch-platform  { --acc: #EC9A8F; }

/* ── Type ───────────────────────────────────────────────────────────────── */
.sc-h1 { font-family: var(--sc-display); font-weight: 800; font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.sc-h2 { font-family: var(--sc-display); font-weight: 800; font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.sc-h3 { font-family: var(--sc-display); font-weight: 800; font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.sc-h4 { font-family: var(--sc-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; }
:lang(ta) :is(.sc-h1, .sc-h2, .sc-h3, .sc-h4) { font-family: var(--sc-tamil); letter-spacing: 0; line-height: 1.32; }
:lang(ta) .sc-h1 { font-size: clamp(2rem, 3.7vw, 3.1rem); }
:lang(ta) .sc-h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
:lang(ta) .sc-h3 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); }
:lang(ta) .sc-h4 { font-size: 1rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.sc-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.875rem; padding: 0.7rem 1.3rem; border-radius: 9999px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.sc-btn svg { width: 1rem; height: 1rem; }
.sc-btn:hover { transform: translateY(-1px); }
.sc-btn:focus-visible, .sc a:focus-visible, .sc button:focus-visible { outline: 3px solid var(--sc-zari); outline-offset: 3px; }
.sc-btn-primary { background: linear-gradient(180deg, #F6CF6A, var(--sc-zari-deep)); color: #2A1A05; box-shadow: 0 10px 30px -10px rgb(224 165 38 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.5); }
.sc-btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35); }
.sc-btn-ghost:hover { background: rgb(255 255 255 / 0.08); }
.sc-btn-link { color: #E4D8C4; padding-left: 0.6rem; padding-right: 0.6rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(228 216 196 / 0.4); }
.sc-btn-link:hover { color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.sc-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--sc-cream);
  background:
    radial-gradient(900px 520px at 78% 18%, rgb(179 38 30 / 0.42), transparent 62%),
    radial-gradient(700px 480px at 8% 96%, rgb(224 165 38 / 0.20), transparent 60%),
    radial-gradient(600px 400px at 50% 120%, rgb(15 107 92 / 0.28), transparent 70%),
    var(--sc-ink);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.sc-hero-kolam { position: absolute; inset: -10% -20% auto auto; width: min(70vw, 900px); aspect-ratio: 1; opacity: 0.09; pointer-events: none; z-index: -1; transform: rotate(8deg); }
.sc-hero-kolam-svg { width: 100%; height: 100%; }
.sc-hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1100px) { .sc-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.sc-kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-zari); }
:lang(ta) .sc-kicker { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.sc-kicker-mark { width: 1.75rem; height: 1.75rem; border-radius: 0.45rem; }
.sc-hero .sc-h1 { margin-top: 1.1rem; }
.sc-hero-lead { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgb(243 235 221 / 0.82); max-width: 36rem; }
.sc-count { margin-top: 1.6rem; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.95rem 0.5rem 0.8rem; border-radius: 9999px; font-weight: 700; font-size: 0.9375rem; color: #fff; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(242 193 78 / 0.45); }
.sc-count-dot { width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: #4ADE80; box-shadow: 0 0 0 4px rgb(74 222 128 / 0.18); }
@media (prefers-reduced-motion: no-preference) { .sc-count-dot { animation: sc-pulse 2.4s ease-in-out infinite; } }
@keyframes sc-pulse { 50% { box-shadow: 0 0 0 7px rgb(74 222 128 / 0.05); } }
.sc-stats { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; max-width: 34rem; border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 1.1rem; }
.sc-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.2rem; }
.sc-stats dd { font-family: var(--sc-display); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1; color: var(--sc-zari); font-variant-numeric: tabular-nums; }
.sc-stats dt { font-size: 0.75rem; line-height: 1.35; color: rgb(243 235 221 / 0.65); padding-right: 0.5rem; }
.sc-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.sc-hero-caption { margin-top: 1.75rem; font-size: 0.8125rem; color: rgb(243 235 221 / 0.55); text-align: center; }
@media (min-width: 1100px) { .sc-hero-caption { text-align: right; } }

/* The hero stage: the website in a browser, the app in a phone in front. */
.sc-hero-stage { position: relative; padding-bottom: 22%; padding-right: 9%; }
.sc-hero-browser { transform: perspective(2400px) rotateY(-7deg) rotateX(2deg); transform-origin: 60% 50%; }
.sc-phone.sc-hero-phone { position: absolute; right: 0; bottom: 0; width: 25%; min-width: 132px; margin: 0; }
@media (max-width: 639px) {
  .sc-hero-stage { padding-right: 0; padding-bottom: 32%; }
  .sc-hero-browser { transform: none; }
  .sc-phone.sc-hero-phone { right: 2%; width: 34%; min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .sc-hero-browser { animation: sc-float-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .sc-hero-phone { animation: sc-rise 1.1s 0.25s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes sc-float-in { from { opacity: 0; transform: perspective(2400px) rotateY(-14deg) rotateX(4deg) translateY(30px); } }
@keyframes sc-rise { from { opacity: 0; transform: translateY(60px); } }
@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  @keyframes sc-float-in { from { opacity: 0; transform: translateY(24px); } }
}

/* ── Devices ────────────────────────────────────────────────────────────── */
/* Browser window */
.sc-browser { position: relative; border-radius: 14px; overflow: hidden; background: #EEE7DC;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 2px 4px rgb(20 17 16 / 0.06), 0 30px 70px -28px rgb(20 17 16 / 0.55), 0 70px 120px -60px rgb(110 44 30 / 0.45); }
.dark .sc-browser, .sc-hero .sc-browser, .sc-close .sc-browser { background: #26211E; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 80px -30px rgb(0 0 0 / 0.8), 0 70px 140px -60px rgb(179 38 30 / 0.35); }
.sc-browser-bar { display: flex; align-items: center; gap: 0.75rem; height: 2.25rem; padding: 0 0.85rem; }
.sc-lights { display: flex; gap: 0.42rem; flex: 0 0 auto; }
.sc-lights i { width: 0.7rem; height: 0.7rem; border-radius: 9999px; background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.15); }
.sc-lights i:nth-child(2) { background: #FEBC2E; }
.sc-lights i:nth-child(3) { background: #28C840; }
.sc-address { flex: 1 1 auto; min-width: 0; max-width: 28rem; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 0.4rem; height: 1.5rem; padding: 0 0.75rem; border-radius: 0.5rem; background: rgb(255 255 255 / 0.85); color: #5E5650; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; }
.sc-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-address svg { width: 0.7rem; height: 0.7rem; flex: 0 0 auto; }
.dark .sc-address, .sc-hero .sc-address { background: rgb(255 255 255 / 0.08); color: #CDBFA9; }
.sc-bar-spacer { width: 3.1rem; flex: 0 0 auto; }
@media (max-width: 479px) { .sc-bar-spacer { display: none; } .sc-browser-bar { height: 1.75rem; } .sc-address { height: 1.2rem; font-size: 0.6875rem; } .sc-lights i { width: 0.55rem; height: 0.55rem; } }

.sc-screen { position: relative; overflow: hidden; background: #FFFDF6; container-type: inline-size; }
.sc-screen-web { aspect-ratio: 1280 / 800; }
.sc-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; background: #FFFDF6; }

/* Phone */
.sc-phone { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.sc-phone-body { position: relative; padding: 3.6%; border-radius: 15% / 7%;
  background: linear-gradient(150deg, #4A4541 0%, #1E1B19 22%, #121010 60%, #2E2A27 100%);
  box-shadow: inset 0 0 0 1.5px #615A54, inset 0 0 0 3px #161413, 0 1px 1px rgb(0 0 0 / 0.4), 0 40px 70px -28px rgb(20 17 16 / 0.7), 0 80px 120px -60px rgb(110 44 30 / 0.45); }
.sc-phone-key { position: absolute; width: 0.5%; min-width: 2px; border-radius: 2px; background: linear-gradient(90deg, #3B3632, #5A534D); }
.sc-key-action { left: -0.5%; top: 17%; height: 5%; }
.sc-key-up { left: -0.5%; top: 25%; height: 9%; }
.sc-key-down { left: -0.5%; top: 35.5%; height: 9%; }
.sc-key-power { right: -0.5%; top: 28%; height: 14%; }
.sc-phone-glass { position: relative; overflow: hidden; border-radius: 12% / 5.6%; aspect-ratio: 390 / 844; background: #000; container-type: inline-size; }
.sc-phone-glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; border-radius: inherit;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.13) 0%, rgb(255 255 255 / 0.04) 28%, transparent 42%); }
.sc-status { position: absolute; top: 0; left: 0; right: 0; height: 5.22%; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 8.5% 0 10%; color: #171412; background: var(--sc-status-bg, #FFFDF6); font: 600 4.1cqi/1 -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; letter-spacing: -0.01em; }
.sc-phone.is-dark-status .sc-status { color: #fff; }
.sc-status-time { width: 22%; }
.sc-status-icons { width: 22%; display: flex; align-items: center; justify-content: flex-end; gap: 4.5%; }
.sc-status-icons svg { height: 2.6cqi; width: auto; }
.sc-battery { position: relative; width: 6.2cqi; height: 3cqi; border-radius: 0.9cqi; box-shadow: inset 0 0 0 0.25cqi currentColor; opacity: 0.95; }
.sc-battery::after { content: ""; position: absolute; right: -0.9cqi; top: 32%; width: 0.6cqi; height: 36%; border-radius: 0 0.4cqi 0.4cqi 0; background: currentColor; opacity: 0.5; }
.sc-battery i { position: absolute; inset: 0.6cqi; right: 1.4cqi; border-radius: 0.4cqi; background: currentColor; }
.sc-island { position: absolute; left: 50%; top: 1.2%; width: 31%; height: 3.5%; transform: translateX(-50%); border-radius: 9999px; background: #000; z-index: 4; }
.sc-island::after { content: ""; position: absolute; right: 13%; top: 30%; width: 13%; aspect-ratio: 1; border-radius: 9999px; background: radial-gradient(circle at 35% 35%, #2B3A55, #0A0D14 60%); }
.sc-screen-app { position: absolute; left: 0; right: 0; bottom: 0; top: 5.22%; z-index: 1; background: #FFFDF6; }
.sc-home { position: absolute; left: 50%; bottom: 0.9%; width: 34%; height: 0.55%; min-height: 3px; transform: translateX(-50%); border-radius: 9999px; background: rgb(23 20 18 / 0.85); z-index: 4; pointer-events: none; }

/* Live mode: the real page or app inside the device. */
.sc-live { position: absolute; left: 50%; bottom: 6%; z-index: 4; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.55rem; max-width: 92%; padding: 0.6rem 1.05rem 0.6rem 0.85rem; border-radius: 9999px; background: rgb(23 20 18 / 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-weight: 700; font-size: 0.875rem; line-height: 1.2; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.14); transition: transform 160ms ease, background-color 160ms ease; }
.sc-live:hover { background: rgb(23 20 18 / 0.92); transform: translateX(-50%) translateY(-2px); }
.sc-screen-app .sc-live { font-size: 0.8125rem; bottom: 9%; padding: 0.55rem 0.9rem 0.55rem 0.75rem; white-space: normal; text-align: left; width: max-content; }
.sc-live-pulse { width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: #4ADE80; flex: 0 0 auto; box-shadow: 0 0 0 4px rgb(74 222 128 / 0.25); }
@media (prefers-reduced-motion: no-preference) { .sc-live-pulse { animation: sc-pulse 2s ease-in-out infinite; } }
.sc-frame { position: absolute; left: 0; top: 0; border: 0; transform: scale(var(--sc-s, 1)); transform-origin: 0 0; background: #FFFDF6; z-index: 2; }
.sc-screen.is-live .sc-media, .sc-screen.is-live .sc-live, .sc-screen.is-live .sc-vid-toggle { visibility: hidden; }
.sc-livebar { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 6; display: inline-flex; align-items: center; gap: 0.15rem; padding: 0.2rem; border-radius: 9999px; background: rgb(23 20 18 / 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 0.75rem; font-weight: 700; box-shadow: 0 6px 20px -8px rgb(0 0 0 / 0.6); }
.sc-livebar span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.55rem; }
.sc-livebar span::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 9999px; background: #4ADE80; }
.sc-livebar a, .sc-livebar button { all: unset; cursor: pointer; padding: 0.25rem 0.6rem; border-radius: 9999px; }
.sc-livebar a:hover, .sc-livebar button:hover { background: rgb(255 255 255 / 0.12); }
.sc-livebar a:focus-visible, .sc-livebar button:focus-visible { outline: 2px solid var(--sc-zari); }
.sc-screen-app .sc-livebar { top: auto; bottom: 2.4%; right: 50%; transform: translateX(50%); font-size: 0.6875rem; }
.sc-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: #786C62; font-size: 0.875rem; font-weight: 600; background: #FFFDF6; }

/* Recordings */
.sc-vid-toggle { position: absolute; left: 0.7rem; top: 0.7rem; z-index: 3; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.4rem 0.3rem 0.65rem; border: 0; border-radius: 9999px; background: rgb(23 20 18 / 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 700 0.6875rem/1 var(--sc-display); cursor: pointer; }
.sc-vid-toggle svg { width: 1.35rem; height: 1.35rem; padding: 0.3rem; border-radius: 9999px; background: rgb(255 255 255 / 0.16); }
.sc-vid-toggle .sc-i-pause { display: none; }
.sc-vid-toggle[aria-pressed="true"] .sc-i-pause { display: block; }
.sc-vid-toggle[aria-pressed="true"] .sc-i-play { display: none; }
.sc-vid-badge::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.4rem; border-radius: 9999px; background: #F87171; vertical-align: 0.05em; }

/* ── Sticky chapter navigation and the platform filter ─────────────────── */
.sc-nav { position: sticky; top: var(--sc-top); z-index: 30; background: color-mix(in srgb, var(--kv-page) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--kv-line); }
.sc-nav-inner { max-width: var(--sc-max); margin: 0 auto; padding: 0.55rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .sc-nav-inner { padding: 0.6rem 2rem; } }
.sc-tabs { flex: 1 1 auto; min-width: 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 1.5rem; }
.sc-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .sc-tabs { -webkit-mask-image: none; mask-image: none; padding-right: 0; } }
.sc-tab { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.8rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 650; white-space: nowrap; text-decoration: none; color: var(--kv-muted); transition: color 150ms, background-color 150ms, box-shadow 150ms; }
.sc-tab:hover { color: var(--kv-text); background: var(--kv-surface); }
.sc-tab[aria-current="true"] { color: var(--kv-text); background: var(--kv-surface); box-shadow: inset 0 0 0 1px var(--kv-line), 0 2px 8px -4px rgb(20 17 16 / 0.25); }
.sc-tab-n { min-width: 1.5rem; padding: 0.05rem 0.4rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700; text-align: center; background: color-mix(in srgb, var(--kv-text) 8%, transparent); font-variant-numeric: tabular-nums; }
.sc-tab[aria-current="true"] .sc-tab-n { background: var(--kv-primary); color: #fff; }
.sc-filter { flex: 0 0 auto; display: inline-flex; padding: 0.2rem; border-radius: 9999px; background: color-mix(in srgb, var(--kv-text) 7%, transparent); box-shadow: inset 0 0 0 1px var(--kv-line); }
.sc-chip { border: 0; background: none; cursor: pointer; padding: 0.32rem 0.75rem; border-radius: 9999px; font: 650 0.8125rem/1.2 var(--sc-display); color: var(--kv-muted); }
:lang(ta) .sc-chip, :lang(ta) .sc-tab { font-size: 0.78rem; }
.sc-chip:hover { color: var(--kv-text); }
.sc-chip[aria-pressed="true"] { background: var(--kv-surface); color: var(--kv-text); box-shadow: 0 1px 4px rgb(20 17 16 / 0.18); }
@media (max-width: 639px) {
  .sc-nav-inner { flex-wrap: wrap; row-gap: 0.35rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
  .sc-tabs { flex: 1 1 100%; }
  .sc-chip { padding: 0.24rem 0.7rem; font-size: 0.75rem; }
}
@media (max-width: 479px) {
  .sc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
}

/* ── Chapters ───────────────────────────────────────────────────────────── */
.sc-chapter { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); }
.sc-chapter:nth-of-type(even) { background: var(--kv-sand-soft); }
.sc-ch-head { display: grid; gap: 2rem; align-items: center; }
.sc-ch-text { max-width: 50rem; }
.sc-ch-art { display: none; }
@media (min-width: 1024px) {
  .sc-ch-head { grid-template-columns: minmax(0, 1fr) auto; }
  .sc-ch-art { display: block; position: relative; width: clamp(200px, 20vw, 270px); aspect-ratio: 1; margin-right: 1rem; }
  .sc-ch-art::before { content: ""; position: absolute; inset: -14%; border-radius: 9999px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 16%, transparent), transparent); }
  .sc-ch-art .kv-kolam { position: relative; width: 100%; height: 100%; color: var(--acc) !important; opacity: 0.85; }
}
.sc-ch-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem; font-weight: 700; }
.sc-ch-no { font-family: var(--sc-display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 0.9; font-weight: 800; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--acc); }
.sc-ch-name { font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc); }
:lang(ta) .sc-ch-name { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.sc-ch-count { font-size: 0.8125rem; font-weight: 600; color: var(--kv-muted); }
.sc-ch-head .sc-h2 { margin-top: 1rem; }
.sc-ch-lead { margin-top: 1rem; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--kv-muted); max-width: 44rem; }
.sc-login { margin-top: 1.5rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.55rem; padding: 0.55rem 0.95rem; border-radius: 0.9rem; font-size: 0.875rem; background: var(--kv-surface); box-shadow: inset 0 0 0 1px var(--kv-line); }
.sc-login code, .sc-signin code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8125rem; font-weight: 600; color: var(--kv-text); }
.sc-login-key { width: 1rem; height: 1rem; color: var(--acc); }
.sc-login-label { font-weight: 700; }
.sc-login-sep { color: var(--kv-muted); }
.sc-login-ro { padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.sc-login-open { color: var(--kv-muted); }

/* A staged moment */
.sc-stage { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 7vw, 6rem); }
@media (min-width: 1024px) {
  .sc-stage { grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr); }
  .sc-stage.is-flip { grid-template-columns: minmax(0, 4.8fr) minmax(0, 7.2fr); }
  .sc-stage.is-flip .sc-stage-device { order: 2; }
  .sc-stage-phone { grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); }
  .sc-stage-phone.is-flip { grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr); }
}
.sc-stage-device { position: relative; padding: clamp(1.25rem, 3.6vw, 3rem); border-radius: clamp(1.25rem, 2.4vw, 2rem); isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--acc-2, var(--acc)) 20%, transparent), transparent 60%),
    color-mix(in srgb, var(--acc) 6%, var(--kv-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 16%, transparent); }
.sc-stage-device::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--acc) 35%, transparent) 1.2px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent); }
.sc-stage-phone .sc-phone { max-width: 330px; }
.sc-duo { position: relative; padding: 0 9% 12% 0; }
.sc-phone.sc-duo-phone { position: absolute; right: 0; bottom: 0; width: 26%; min-width: 110px; max-width: 230px; margin: 0; }
@media (max-width: 639px) { .sc-duo { padding: 0 0 30% 0; } .sc-phone.sc-duo-phone { width: 34%; right: 3%; min-width: 0; } }
.sc-stage-copy { max-width: 32rem; }
.sc-wow { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.7rem 0.28rem 0.55rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #3A2604; background: linear-gradient(135deg, #FBE29A, var(--sc-zari-deep)); box-shadow: 0 6px 16px -8px rgb(224 165 38 / 0.8); }
:lang(ta) .sc-wow { text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.sc-wow svg { width: 0.8rem; height: 0.8rem; }
.sc-stage-copy .sc-h3 { margin-top: 0.9rem; }
.sc-benefit { margin-top: 1rem; font-size: 1.125rem; line-height: 1.6; color: var(--kv-muted); }
:lang(ta) .sc-benefit { font-size: 1.0625rem; line-height: 1.75; }
.sc-points { margin-top: 1.25rem; display: grid; gap: 0.7rem; }
.sc-points li { position: relative; padding-left: 1.6rem; font-size: 0.975rem; line-height: 1.5; }
.sc-points li::before { content: ""; position: absolute; left: 0.15rem; top: 0.42em; width: 0.62rem; height: 0.62rem; transform: rotate(45deg); border-radius: 2px; background: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 20%, transparent); }
.sc-stage-copy .sc-plats { margin-top: 1.4rem; }

/* Platforms */
.sc-plats { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sc-plat { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.16rem 0.5rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700; color: var(--kv-muted); box-shadow: inset 0 0 0 1px var(--kv-line); background: var(--kv-surface); }
.sc-plat::before { content: ""; width: 0.38rem; height: 0.38rem; border-radius: 9999px; background: currentColor; opacity: 0.6; }
.sc-plat-web::before { background: #2563EB; opacity: 1; }
.sc-plat-ios::before { background: #57534E; opacity: 1; }
.sc-plat-android::before { background: #3DDC84; opacity: 1; }
.sc-plat-appweb::before { background: var(--sc-zari-deep); opacity: 1; }

/* Try it */
.sc-try { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.sc-try a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.38rem 0.7rem; border-radius: 0.65rem; font-size: 0.8125rem; text-decoration: none; background: var(--kv-surface); box-shadow: inset 0 0 0 1px var(--kv-line); transition: box-shadow 150ms, transform 150ms; max-width: 100%; }
.sc-try a:hover { box-shadow: inset 0 0 0 1.5px var(--acc); transform: translateY(-1px); }
.sc-try svg { width: 0.75rem; height: 0.75rem; flex: 0 0 auto; color: var(--acc); }
.sc-try-k { font-weight: 700; }
.sc-try-url { color: var(--kv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sc-try-big { margin-top: 1.6rem; gap: 0.6rem; }
.sc-try-big a { padding: 0.65rem 1rem; border-radius: 0.9rem; font-size: 0.9rem; }
.sc-try-big .sc-try-web { background: var(--acc); color: #fff; box-shadow: 0 10px 24px -12px var(--acc); }
.sc-try-big .sc-try-web .sc-try-url { color: rgb(255 255 255 / 0.8); }
.sc-try-big .sc-try-web svg { color: #fff; }
.dark .sc-try-big .sc-try-web { color: #171412; }
.dark .sc-try-big .sc-try-web .sc-try-url, .dark .sc-try-big .sc-try-web svg { color: rgb(23 20 18 / 0.8); }
.sc-signin { flex-basis: 100%; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem; font-size: 0.75rem; color: var(--kv-muted); overflow-wrap: anywhere; }
.sc-signin svg { width: 0.8rem; height: 0.8rem; color: var(--acc); flex: 0 0 auto; }

/* The grid of the rest */
.sc-more-h { margin-top: clamp(3.5rem, 7vw, 5.5rem); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kv-muted); display: flex; align-items: center; gap: 1rem; }
.sc-more-h::after { content: ""; flex: 1; height: 1px; background: var(--kv-line); }
:lang(ta) .sc-more-h { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.sc-grid { margin-top: 1.5rem; display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
.sc-card { display: flex; flex-direction: column; border-radius: 1.25rem; overflow: hidden; background: var(--kv-surface); box-shadow: inset 0 0 0 1px var(--kv-line), 0 1px 2px rgb(20 17 16 / 0.04); transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms; }
.sc-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 40%, var(--kv-line)), 0 24px 40px -24px rgb(20 17 16 / 0.35); }
.sc-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 90% at 15% 0%, color-mix(in srgb, var(--acc) 18%, transparent), transparent 65%), color-mix(in srgb, var(--acc) 5%, var(--kv-page)); }
.sc-card-media::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.45; background-image: radial-gradient(circle, color-mix(in srgb, var(--acc) 30%, transparent) 1px, transparent 1.4px); background-size: 16px 16px; }
.sc-mini-browser { position: absolute; left: 8%; right: 8%; top: 11%; border-radius: 0.55rem; overflow: hidden; background: #EEE7DC; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 16px 30px -14px rgb(20 17 16 / 0.45); transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.dark .sc-mini-browser { background: #26211E; }
.sc-mini-bar { display: flex; gap: 0.22rem; padding: 0.35rem 0.45rem; }
.sc-mini-bar i { width: 0.36rem; height: 0.36rem; border-radius: 9999px; background: #FF5F57; }
.sc-mini-bar i:nth-child(2) { background: #FEBC2E; }
.sc-mini-bar i:nth-child(3) { background: #28C840; }
.sc-mini-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.sc-mini-phone { position: absolute; left: 50%; top: 9%; width: 36%; transform: translateX(-50%); padding: 2.4%; border-radius: 1.35rem; background: linear-gradient(150deg, #4A4541, #141211 30%, #2E2A27); box-shadow: inset 0 0 0 1px #5d5650, 0 18px 30px -14px rgb(20 17 16 / 0.6); transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.sc-mini-phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 800; object-fit: cover; object-position: top; border-radius: 1.05rem; background: #FFFDF6; }
.sc-card:hover .sc-mini-browser { transform: translateY(-4px); }
.sc-card:hover .sc-mini-phone { transform: translateX(-50%) translateY(-6px); }
.sc-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1.25rem; border-top: 1px solid var(--kv-line); }
.sc-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-bottom: 0.65rem; }
.sc-card-tags .sc-wow { font-size: 0.65rem; padding: 0.2rem 0.55rem 0.2rem 0.45rem; }
.sc-card-b { margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.55; color: var(--kv-muted); }
:lang(ta) .sc-card-b { font-size: 0.875rem; line-height: 1.7; }
.sc-card .sc-try { margin-top: auto; padding-top: 0.9rem; }
.sc-card .sc-try a { font-size: 0.75rem; padding: 0.3rem 0.55rem; }

/* Platform filter */
.sc[data-filter="web"] [data-web="0"], .sc[data-filter="app"] [data-app="0"] { display: none !important; }
.sc-empty { display: none; margin-top: 2rem; padding: 1rem 1.25rem; border-radius: 1rem; font-size: 0.9375rem; color: var(--kv-muted); background: var(--kv-surface); box-shadow: inset 0 0 0 1px var(--kv-line); }
.sc-chapter.is-empty .sc-empty { display: block; }
.sc-chapter.is-empty .sc-more-h, .sc-chapter.is-rest-empty .sc-more-h { display: none; }

/* ── Next ───────────────────────────────────────────────────────────────── */
.sc-next { padding: clamp(4rem, 8vw, 6rem) 0; border-top: 1px solid var(--kv-line); }
.sc-next-head { max-width: 46rem; }
.sc-next-badge { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kv-muted); box-shadow: inset 0 0 0 1px var(--kv-line); }
.sc-next-head .sc-h2 { margin-top: 0.8rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.sc-next-grid { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sc-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sc-next-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-next-item { padding: 1.15rem 1.25rem; border-radius: 1rem; border: 1.5px dashed var(--kv-line); }
.sc-next-item p { margin-top: 0.35rem; font-size: 0.9rem; line-height: 1.55; color: var(--kv-muted); }

/* ── Closing ────────────────────────────────────────────────────────────── */
.sc-close { position: relative; isolation: isolate; overflow: hidden; color: var(--sc-cream); padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: radial-gradient(800px 500px at 85% 10%, rgb(179 38 30 / 0.4), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgb(224 165 38 / 0.18), transparent 60%), var(--sc-ink); }
.sc-close-kolam { inset: auto auto -30% -15%; transform: rotate(-12deg); }
.sc-close .sc-h2 { color: #fff; }
.sc-close-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .sc-close-grid { grid-template-columns: minmax(0, 1fr) auto; } }
.sc-logins { margin-top: 1.6rem; display: grid; gap: 0.5rem; grid-template-columns: minmax(0, 1fr); max-width: 38rem; }
@media (min-width: 640px) { .sc-logins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-logins li { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.7rem 0.9rem; border-radius: 0.85rem; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.sc-logins-role { font-size: 0.75rem; font-weight: 700; color: var(--sc-zari); }
.sc-logins code, .sc-logins-pw code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem; color: #fff; overflow-wrap: anywhere; }
.sc-logins-pw { margin-top: 0.9rem; font-size: 0.8125rem; color: rgb(243 235 221 / 0.7); }
.sc-qr { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.2rem 1.2rem 1rem; border-radius: 1.4rem; background: #FFFDF6; color: #171412; text-decoration: none; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7); justify-self: center; }
.sc-qr svg { width: 180px; height: 180px; }
.sc-qr strong { font-size: 0.95rem; }
.sc-qr span { font-size: 0.75rem; color: #5E5650; max-width: 14rem; text-align: center; }

/* ── Scroll reveal (only once the script runs; nothing hides without it) ─ */
@media (prefers-reduced-motion: no-preference) {
  .sc.sc-anim .sc-reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 900ms cubic-bezier(.2,.7,.2,1); }
  .sc.sc-anim .sc-stage .sc-stage-copy.sc-reveal { transition-delay: 120ms; }
  .sc.sc-anim .sc-reveal.is-in { opacity: 1; transform: none; }
}

/* ── Print: the pictures, no controls ───────────────────────────────────── */
@media print {
  .sc-nav, .sc-live, .sc-livebar, .sc-vid-toggle, .sc-frame, .sc-ctas, .kv-nav, .kv-footer, #chat-widget { display: none !important; }
  .sc .sc-reveal { opacity: 1 !important; transform: none !important; }
  .sc-hero, .sc-close { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sc-stage, .sc-card { break-inside: avoid; }
}
@media (max-width: 639px) { .sc [id] { scroll-margin-top: calc(var(--sc-top) + 100px); } }
@media (max-width: 639px) { .sc-live { font-size: 0.78rem; padding: 0.5rem 0.85rem 0.5rem 0.7rem; white-space: normal; text-align: left; max-width: 86%; } }
