/* Samskrtasamsad interactive demo — page shell.
   The app screens themselves are styled by assets/samsad-demo/app.css (generated from the app's design mockups). */

.sdt { --sdt-violet: #5b3fb0; --sdt-ok: #2f7d4f; --sdt-ok-bg: #e9f6ee; }
.sdt *, .sdt *::before, .sdt *::after { box-sizing: border-box; }
.sdt [hidden] { display: none !important; }
.sdt button { font-family: inherit; cursor: pointer; }
.sdt :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- buttons ---------- */
.sdt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.sdt-btn:hover { transform: translateY(-2px); }
.sdt-btn.primary { background: var(--ink); color: var(--cream); box-shadow: 0 8px 22px rgba(46,38,71,.25); }
.sdt-btn.gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(184,134,11,.3); }
.sdt-btn.ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.sdt-btn svg { width: 18px; height: 18px; flex: none; }
.sdt-pulse { animation: sdt-pulse 2.2s ease-in-out infinite; }
@keyframes sdt-pulse { 0%,100% { box-shadow: 0 8px 22px rgba(184,134,11,.3), 0 0 0 0 rgba(184,134,11,.45); } 50% { box-shadow: 0 8px 22px rgba(184,134,11,.3), 0 0 0 12px rgba(184,134,11,0); } }

/* ---------- hero ---------- */
.sdt-hero { max-width: 1080px; margin: 0 auto; padding: 56px 28px 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.sdt-hero .app-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 8px 24px rgba(47,27,100,.28); margin-bottom: 16px; }
.sdt-hero h1 { font-size: 40px; font-weight: 600; line-height: 1.15; margin-bottom: 6px; }
.sdt-hero .sa-name { font-family: 'Noto Serif Devanagari'; font-size: 18px; color: var(--ink-soft); margin-bottom: 16px; }
.sdt-tagline { display: inline-block; background: var(--card); border: 1px solid var(--border); color: var(--gold); font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 999px; margin-bottom: 18px; }
.sdt-hero .lead { color: var(--ink-soft); font-size: 16px; line-height: 1.75; margin-bottom: 24px; max-width: 520px; }
.sdt-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sdt-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; line-height: 1.6; max-width: 520px; }
.sdt-hero-dev { display: flex; justify-content: center; }

/* ---------- tour shell ---------- */
.sdt-tour { max-width: 1180px; margin: 0 auto; padding: 20px 20px 8px; scroll-margin-top: 78px; }
.sdt-panel { background: var(--card); border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 18px 44px rgba(46,38,71,.08); position: relative; overflow: hidden; }
.sdt-panel::before { content: ''; position: absolute; width: 420px; height: 420px; left: -160px; top: -180px; background: radial-gradient(circle, rgba(184,134,11,.12), transparent 70%); pointer-events: none; }

.sdt-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.5); position: relative; z-index: 2; }
.sdt-ctl-group { display: flex; align-items: center; gap: 10px; }
.sdt-ctl-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.sdt-seg { display: inline-flex; background: #e9edf6; border-radius: 999px; padding: 3px; gap: 2px; }
.sdt-seg button { border: none; background: none; color: var(--ink-soft); font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.sdt-seg button svg { width: 15px; height: 15px; flex: none; }
.sdt-seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 4px 12px rgba(46,38,71,.25); }

.sdt-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; padding: 26px 26px 30px; align-items: center; position: relative; z-index: 1; }

/* coach column */
.sdt-coach { min-height: 430px; display: flex; flex-direction: column; justify-content: center; }
.sdt-dots { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.sdt-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); background: #fff; color: var(--ink-soft); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0; transition: all .3s ease; }
.sdt-dot.done { background: var(--sdt-violet); border-color: var(--sdt-violet); color: #fff; }
.sdt-dot.now { border-color: var(--gold); color: var(--ink); transform: scale(1.2); box-shadow: 0 0 0 4px rgba(184,134,11,.18); }
.sdt-dot:disabled { opacity: .4; cursor: default; }
.sdt-bar { flex: 1; min-width: 36px; height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; margin-left: 6px; }
.sdt-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sdt-violet), var(--gold)); border-radius: 6px; transition: width .5s ease; }

.sdt-step { animation: sdt-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes sdt-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sdt-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.sdt-step h2, .sdt-step h3.sdt-title { font-size: 29px; line-height: 1.2; font-weight: 600; margin-bottom: 12px; font-family: 'Fraunces', serif; }
.sdt-step p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.sdt-sa { font-family: 'Noto Serif Devanagari', serif; }
.sdt-tip { display: flex; align-items: center; gap: 10px; background: #efe9fb; color: var(--sdt-violet); border-radius: 14px; padding: 11px 15px; font-size: 13.5px; font-weight: 700; margin: 6px 0 14px; }
.sdt-tip .hand { font-size: 20px; animation: sdt-nudge 1.5s ease-in-out infinite; display: inline-block; }
@keyframes sdt-nudge { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5px,-5px); } }
.sdt-points { list-style: none; padding: 0; margin: 0 0 6px; }
.sdt-points li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink); line-height: 1.6; margin-bottom: 8px; opacity: 0; transform: translateX(-10px); transition: opacity .45s ease, transform .45s ease; }
.sdt-points li::before { content: '✓'; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--sdt-ok-bg); color: var(--sdt-ok); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.sdt-points.show li { opacity: 1; transform: none; }
.sdt-points.show li:nth-child(2) { transition-delay: .12s; }
.sdt-points.show li:nth-child(3) { transition-delay: .24s; }
.sdt-points.show li:nth-child(4) { transition-delay: .36s; }
.sdt-done { display: none; align-items: center; gap: 8px; color: var(--sdt-ok); font-weight: 700; font-size: 14px; margin-bottom: 10px; animation: sdt-pop .4s ease; }
.sdt-done.show { display: flex; }
@keyframes sdt-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.sdt-note { font-size: 12.5px !important; color: var(--ink-soft); background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 9px 13px; }

.sdt-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.sdt-back { background: none; border: none; color: var(--ink-soft); font-size: 14px; font-weight: 600; padding: 10px 6px; }
.sdt-back:disabled { visibility: hidden; }
.sdt-next { position: relative; overflow: hidden; }
.sdt-next .auto { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(255,255,255,.85); }
.sdt-next.counting .auto { animation: sdt-count 1.9s linear forwards; }
@keyframes sdt-count { from { width: 0; } to { width: 100%; } }
.sdt-skipnote { font-size: 12px; color: var(--ink-soft); }

/* who are you */
.sdt-who h2 { font-size: 28px; }
.sdt-who-grid { display: grid; gap: 12px; margin-top: 8px; }
.sdt-who-card { display: flex; align-items: center; gap: 16px; text-align: left; background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 16px 18px; color: var(--ink); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.sdt-who-card:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(46,38,71,.12); }
.sdt-who-card .em { font-size: 34px; }
.sdt-who-card b { display: block; font-family: 'Fraunces', serif; font-size: 17px; margin-bottom: 2px; }
.sdt-who-card span.d { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.sdt-who-card .go { margin-left: auto; font-size: 20px; color: var(--gold); }

/* finale */
.sdt-finale { text-align: center; }
.sdt-finale .trophy { font-size: 52px; display: block; animation: sdt-bounce 1.2s ease infinite; }
@keyframes sdt-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.sdt-recap { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 4px 0 20px; }
.sdt-recap span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; animation: sdt-pop .4s ease both; }
.sdt-admin { margin: 20px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; text-align: left; }
.sdt-admin b { color: var(--ink); }
.sdt-admin a { color: var(--sdt-violet); font-weight: 700; }
.sdt-restart { background: none; border: none; color: var(--ink-soft); font-size: 13px; text-decoration: underline; margin-top: 14px; }

/* ---------- device area ---------- */
.sdt-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 560px; }
.sdt-dev-wrap { position: relative; display: flex; justify-content: center; width: 100%; }
.sdt-platnote { font-size: 12px; color: var(--ink-soft); text-align: center; min-height: 18px; }

.sd-app { --sdz: 1.12; display: inline-block; transition: filter .4s ease; }
.sd-app.sd-theme-flash { animation: sdt-flash .6s ease; }
@keyframes sdt-flash { 0% { filter: brightness(1.6) saturate(.7); } 100% { filter: none; } }

/* phone frames */
.sd-dev { position: relative; width: 296px; height: 624px; padding: 11px; background: #141119; box-shadow: 0 30px 60px -22px rgba(20,17,25,.55), inset 0 0 0 2px #2a2535; zoom: var(--sdz); }
.sd-dev.sd-android { border-radius: 32px; }
.sd-dev.sd-ios { border-radius: 48px; padding: 12px; }
.sd-dev .sd-m { width: 100%; height: 100%; position: relative; border-radius: inherit; overflow: hidden; }
.sd-dev.sd-android .sd-m { border-radius: 23px; }
.sd-dev.sd-ios .sd-m { border-radius: 37px; }
.sd-dev .sd-m .screen { border-radius: inherit !important; }
.sd-cam { position: absolute; z-index: 9; background: #0b0910; pointer-events: none; }
.sd-android .sd-cam { top: 19px; left: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 2px #1b1726; }
.sd-ios .sd-cam { top: 19px; left: 50%; width: 82px; height: 23px; border-radius: 14px; transform: translateX(-50%); }
.sd-home { position: absolute; z-index: 9; left: 50%; transform: translateX(-50%); border-radius: 4px; pointer-events: none; opacity: .75; }
.sd-android .sd-home { bottom: 6px; width: 70px; height: 3.5px; }
.sd-ios .sd-home { bottom: 7px; width: 96px; height: 4px; }
.sd-app[data-theme="dark"] .sd-home { background: #e4ded2; }
.sd-app[data-theme="light"] .sd-home { background: #2e2647; }
.sd-sbar { height: 30px !important; padding: 8px 22px 0 !important; align-items: center !important; }
.sd-ios .sd-sbar { padding: 11px 28px 0 !important; font-weight: 700 !important; font-family: -apple-system, 'SF Pro Text', 'Work Sans', sans-serif; }
.sd-sbar .ic { display: inline-flex; align-items: center; gap: 4px; }
.sd-sbar svg { width: 12px; height: 12px; fill: currentColor; }
.sd-sbar svg.bat { width: 18px; }
.sd-android .sd-m .bottom-nav { padding-bottom: 8px; height: 70px; }
.sd-ios .sd-m .bottom-nav { padding-bottom: 14px; height: 76px; }
.sd-ios .sd-m { font-family: -apple-system, 'SF Pro Text', 'Work Sans', sans-serif; }

/* browser frame */
.sd-browser { width: 100%; max-width: 640px; background: #141119; border-radius: 14px; padding: 7px; box-shadow: 0 30px 60px -22px rgba(20,17,25,.55); }
.sd-browser .bar { display: flex; align-items: center; gap: 6px; padding: 7px 9px; }
.sd-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3c3648; display: block; }
.sd-browser .bar .url { flex: 1; margin-left: 10px; background: #2a2635; color: #8d859c; border-radius: 7px; padding: 4px 12px; font-size: 11px; font-family: 'Work Sans', sans-serif; }
.sd-vp { display: flex; height: 470px; border-radius: 9px; overflow: hidden; background: var(--bg-base); }
.sd-vp .browser-viewport { display: flex; flex: 1; min-width: 0; width: 100%; background: var(--bg-base); min-height: 0; }
.sd-w { display: flex; flex: 1; min-width: 0; }
.sd-app[data-theme] .sd-w .sidebar { width: 168px; padding: 14px 8px; }
.sd-app[data-theme] .sd-w .content-scroll { padding: 16px; }
.sd-app[data-theme] .sd-w .top-bar .search { width: 180px; }
.sd-vp .sd-m-col { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; background: var(--bg-base); }
.sd-vp .sd-m-col .sd-m { width: 292px; height: 440px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; position: relative; }
.sd-app { --bg-base: #211d2b; }
.sd-app[data-theme="light"] { --bg-base: #f1f4fa; }

/* tap affordances inside the app */
.sd-hot { position: relative; z-index: 4; animation: sd-ring 1.5s ease-out infinite; cursor: pointer !important; }
.sd-hot::after { content: '👆'; position: absolute; right: -4px; bottom: -14px; font-size: 18px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); animation: sd-tap 1.5s ease-in-out infinite; pointer-events: none; z-index: 6; }
.sd-hot.nofinger::after { display: none; }
@keyframes sd-ring { 0% { box-shadow: 0 0 0 0 rgba(201,147,44,.75); } 70% { box-shadow: 0 0 0 10px rgba(201,147,44,0); } 100% { box-shadow: 0 0 0 0 rgba(201,147,44,0); } }
@keyframes sd-tap { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-4px,-5px); } }
.sd-click { cursor: pointer; }
.sd-fade { animation: sd-fade .35s ease; }
@keyframes sd-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sd-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--gold); color: #fff; font-weight: 700; font-size: 11px; padding: 7px 14px; border-radius: 999px; z-index: 12; box-shadow: 0 6px 16px rgba(0,0,0,.3); animation: sd-toast 1.8s ease forwards; white-space: nowrap; pointer-events: none; }
@keyframes sd-toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%,80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }

/* theme logos */
.sd-app[data-theme="dark"] .lg-l, .sd-app[data-theme="light"] .lg-d { display: none !important; }

/* custom screens (games, AI) built from the app's own classes */
.sd-m .gm-tiles { display: flex; gap: 8px; justify-content: center; margin: 14px 0 8px; }
.sd-m .gm-tile { width: 62px; height: 70px; position: relative; border: none; background: none; padding: 0; perspective: 500px; }
.sd-m .gm-tile span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; backface-visibility: hidden; transition: transform .55s ease; font-family: 'Noto Serif Devanagari', serif; font-size: 22px; font-weight: 700; }
.sd-m .gm-tile .f { background: var(--bg-card); border: 2px dashed var(--border); color: var(--text-muted); }
.sd-m .gm-tile .b { background: var(--brand-gradient); color: #241a1f; transform: rotateY(180deg); }
.sd-app[data-theme="light"] .sd-m .gm-tile .b { color: #fff; }
.sd-m .gm-tile.flip .f { transform: rotateY(180deg); }
.sd-m .gm-tile.flip .b { transform: rotateY(360deg); }
.sd-m .gm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 10px 0; }
.sd-m .gm-grid i { font-style: normal; font-family: 'Noto Serif Devanagari', serif; font-size: 15px; text-align: center; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 8px; padding: 7px 0; color: var(--text-secondary); transition: all .3s ease; }
.sd-m .gm-grid i.hit { background: var(--gold); color: #fff; border-color: var(--gold); transform: scale(1.1); }
.sd-m .gm-fb { text-align: center; font-size: 11px; font-weight: 700; min-height: 16px; color: var(--text-muted); }
.sd-m .gm-fb.ok { color: var(--correct); }
.sd-m .gm-score { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--gold-soft); background: var(--bg-card); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.sd-m .gm-row { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 10px; padding: 8px 10px; margin: 0 15px 6px; font-size: 11px; color: var(--text-secondary); }
.sd-m .gm-row.me { border-color: var(--gold); color: var(--text-primary); font-weight: 700; animation: sd-fade .4s ease; }
.sd-m .gm-row em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--gold-soft); }
.sd-m .ai-chat { padding: 14px 15px; display: flex; flex-direction: column; gap: 9px; }
.sd-m .ai-msg { max-width: 86%; padding: 9px 11px; border-radius: 14px; font-size: 11.5px; line-height: 1.55; animation: sd-fade .35s ease; }
.sd-m .ai-msg.me { align-self: flex-end; background: var(--brand-gradient); color: #241a1f; border-bottom-right-radius: 4px; font-weight: 600; }
.sd-app[data-theme="light"] .sd-m .ai-msg.me { color: #fff; }
.sd-m .ai-msg.bot { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border-soft); color: var(--text-secondary); border-bottom-left-radius: 4px; }
.sd-m .ai-msg .sa { font-family: 'Noto Serif Devanagari', serif; }
.sd-m .ai-typing::after { content: '…'; animation: sd-blink 1s steps(3) infinite; }
@keyframes sd-blink { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }
.sd-m .ai-asks { padding: 0 15px 10px; display: flex; flex-wrap: wrap; gap: 6px; }

/* sticky bar + confetti */
.sdt-sticky { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--cream); padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; transform: translateY(110%); transition: transform .4s ease; z-index: 900; font-size: 13.5px; }
.sdt-sticky.show { transform: none; }
.sdt-sticky a { background: var(--gold); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; }
#sdt-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; width: 100%; height: 100%; }

/* no-JS fallback */
.sdt-nojs { display: none; max-width: 760px; margin: 0 auto; padding: 8px 28px 28px; color: var(--ink-soft); line-height: 1.8; font-size: 15px; }
html:not(.sdt-js) .sdt-nojs { display: block; }
html:not(.sdt-js) .sdt-tour, html:not(.sdt-js) .sdt-start { display: none; }

.app-others { max-width: 760px; margin: 56px auto 0; text-align: center; padding: 0 28px; }
.app-others h4 { font-size: 13px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.app-others-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.app-others-row a { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; text-align: left; min-width: 220px; }
.app-others-row a:hover { border-color: var(--gold); }
.app-others-name { display: block; font-family: 'Fraunces', serif; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.app-others-desc { display: block; font-size: 11.5px; color: var(--ink-soft); }

@media (max-width: 920px) {
  .sdt-hero { grid-template-columns: 1fr; text-align: center; padding-top: 34px; }
  .sdt-hero .lead, .sdt-hint { margin-left: auto; margin-right: auto; }
  .sdt-cta-row { justify-content: center; }
  .sdt-hero h1 { font-size: 32px; }
  .sdt-body { grid-template-columns: 1fr; padding: 18px 14px 24px; }
  .sdt-stage { order: -1; min-height: 0; }
  .sdt-coach { min-height: 0; }
  .sdt-tour { padding-left: 10px; padding-right: 10px; }
  .sdt-controls { padding: 12px 14px; justify-content: center; }
  .sdt-step h2, .sdt-step h3.sdt-title { font-size: 24px; }
  .sd-app { --sdz: .98; }
  .sd-vp { height: 430px; }
  .sd-app[data-theme] .sd-w .sidebar { width: 52px; padding: 12px 6px; }
  .sd-app[data-theme] .sd-w .sidebar .side-item { font-size: 0; justify-content: center; padding: 10px 0; }
  .sd-app[data-theme] .sd-w .sidebar .brand { display: none; }
  .sd-app[data-theme] .sd-w .sidebar .side-badge { display: none; }
  .sd-app[data-theme] .sd-w .top-bar .search { width: 120px; }
}
@media (max-width: 520px) {
  .sdt-controls { gap: 10px; }
  .sdt-ctl-group { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .sdt-seg button { padding: 7px 11px; font-size: 12.5px; }
  .sdt-seg button svg { display: none; }
  .sdt-panel { border-radius: 20px; }
  .sdt-body { padding: 14px 10px 20px; gap: 14px; }
  .sd-vp .sd-m-col .sd-m { width: 100%; }
}
@media (max-width: 560px) {
  .sd-app[data-theme] .sd-w .sidebar { display: none; }
  .sd-vp { height: 400px; }
  .sd-app[data-theme] .sd-w .top-bar { padding: 0 12px; }
  .sd-app[data-theme] .sd-w .top-bar .search { width: auto; flex: 1; margin-right: 8px; }
  .sd-app[data-theme] .sd-w .top-bar .stat { display: none; }
}
@media (max-width: 380px) { .sd-app { --sdz: .84; } .sd-browser { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .sdt *, .sdt *::before, .sdt *::after, .sd-app *, .sd-app *::after { animation: none !important; transition: none !important; }
  .sdt-points li { opacity: 1; transform: none; }
}


/* ================= features + comparison ================= */
.sdt-sec-head { max-width: 780px; margin: 0 auto; text-align: center; padding: 0 20px; }
.sdt-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.sdt-sec-head h2 { font-family: 'Fraunces', serif; font-size: 32px; line-height: 1.2; font-weight: 600; margin-bottom: 10px; }
.sdt-sec-head p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; }
.sdt-try-head { margin-top: 56px; margin-bottom: 4px; scroll-margin-top: 80px; }

.sdt-feat { max-width: 1080px; margin: 0 auto; padding: 44px 20px 10px; scroll-margin-top: 80px; }
.sdt-explored { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.sdt-explored .n { color: var(--gold); font-size: 14px; }
.sdt-xbar { width: 70px; height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; display: inline-block; }
.sdt-xbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5b3fb0, var(--gold)); border-radius: 6px; transition: width .5s ease; }
.sdt-explored.all { color: #2f7d4f; border-color: #c9e9d5; background: #e9f6ee; }

.sdt-feat-grid { display: block; column-count: 2; column-gap: 14px; margin-top: 26px; }
.sdt-fcard { break-inside: avoid; margin-bottom: 14px; background: #fff; border: 1.5px solid var(--border); border-radius: 18px; overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.sdt-fcard:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46,38,71,.1); }
.sdt-fcard.open { border-color: var(--gold); box-shadow: 0 14px 32px rgba(184,134,11,.16); }
.sdt-fcard.seen .sdt-fbtn .ic { background: #e9f6ee; }
.sdt-fbtn { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: none; border: none; padding: 16px 18px; color: var(--ink); }
.sdt-fbtn .ic { width: 46px; height: 46px; border-radius: 14px; background: #efe9fb; display: grid; place-items: center; font-size: 22px; flex: none; transition: background .3s ease, transform .3s ease; }
.sdt-fcard.open .sdt-fbtn .ic { transform: scale(1.1) rotate(-6deg); background: #fff4d6; }
.sdt-fbtn .tx { flex: 1; min-width: 0; }
.sdt-fbtn b { display: block; font-family: 'Fraunces', serif; font-size: 16.5px; margin-bottom: 2px; }
.sdt-fbtn small { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.sdt-fbtn .plus { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); position: relative; flex: none; transition: transform .35s ease, background .3s ease, border-color .3s ease; }
.sdt-fbtn .plus::before, .sdt-fbtn .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--ink-soft); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .35s ease, background .3s ease; }
.sdt-fbtn .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.sdt-fcard.open .plus { transform: rotate(180deg); background: var(--gold); border-color: var(--gold); }
.sdt-fcard.open .plus::before, .sdt-fcard.open .plus::after { background: #fff; }
.sdt-fcard.open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.sdt-fpanel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.sdt-fcard.open .sdt-fpanel { grid-template-rows: 1fr; }
.sdt-fpanel > .in { overflow: hidden; padding: 0 18px; }
.sdt-fcard.open .sdt-fpanel > .in { padding-bottom: 18px; }
.sdt-fpanel ul { list-style: none; padding: 0; margin: 2px 0 14px; border-top: 1px dashed var(--border); padding-top: 14px; }
.sdt-fpanel li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.6; color: var(--ink); margin-bottom: 9px; opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .4s ease; }
.sdt-fpanel li::before { content: '+'; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #e9f6ee; color: #2f7d4f; font-size: 13px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.sdt-fcard.open li { opacity: 1; transform: none; }
.sdt-fcard.open li:nth-child(1) { transition-delay: .12s; } .sdt-fcard.open li:nth-child(2) { transition-delay: .2s; }
.sdt-fcard.open li:nth-child(3) { transition-delay: .28s; } .sdt-fcard.open li:nth-child(4) { transition-delay: .36s; } .sdt-fcard.open li:nth-child(5) { transition-delay: .44s; }
.sdt-fgo { background: var(--ink); color: var(--cream); border: none; border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.sdt-fgo:hover { transform: translateX(4px); background: var(--gold); }

/* comparison */
.sdt-cmp { max-width: 1080px; margin: 0 auto; padding: 60px 20px 10px; scroll-margin-top: 80px; }
.sdt-tablewrap { margin-top: 26px; background: #fff; border: 1.5px solid var(--border); border-radius: 18px; overflow-x: auto; box-shadow: 0 10px 30px rgba(46,38,71,.06); }
.sdt-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 860px; font-size: 13.5px; }
.sdt-table th, .sdt-table td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.55; }
.sdt-table thead th { background: var(--card); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); position: sticky; top: 0; }
.sdt-table thead th.us { background: var(--ink); color: var(--cream); }
.sdt-table tbody th { font-weight: 700; color: var(--ink); width: 17%; font-family: 'Fraunces', serif; font-size: 14px; }
.sdt-table td { color: var(--ink-soft); width: 22%; }
.sdt-table td.us { background: #fbf6e8; color: var(--ink); font-weight: 500; border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.sdt-table thead th.us { border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.sdt-table tbody tr:last-child th, .sdt-table tbody tr:last-child td { border-bottom: none; }
.sdt-table tbody tr { transition: background .2s ease; }
.sdt-table tbody tr:hover td:not(.us), .sdt-table tbody tr:hover th { background: #f7f4fd; }
.sdt-table td:last-child { width: 12%; }
.win { display: inline-block; font-size: 11.5px; font-weight: 700; background: #e9f6ee; color: #2f7d4f; border-radius: 999px; padding: 4px 10px; }
.win.alt { background: #efe9fb; color: #5b3fb0; }
.sdt-cmp-note { max-width: 780px; margin: 16px auto 0; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.sdt-cmp-note a { color: #5b3fb0; text-decoration: underline; }
.sdt-cmp-cta { text-align: center; margin-top: 22px; }

html:not(.sdt-js) .sdt-fpanel { grid-template-rows: 1fr; }
html:not(.sdt-js) .sdt-fpanel li { opacity: 1; transform: none; }
html:not(.sdt-js) .sdt-fgo, html:not(.sdt-js) .sdt-explored { display: none; }

@media (max-width: 920px) {
  .sdt-feat-grid { column-count: 1; }
  .sdt-sec-head h2 { font-size: 26px; }
  .sdt-feat, .sdt-cmp { padding-top: 34px; }
  /* comparison turns into one card per row */
  .sdt-tablewrap { background: none; border: none; box-shadow: none; overflow: visible; }
  .sdt-table { min-width: 0; display: block; font-size: 13.5px; }
  .sdt-table thead { display: none; }
  .sdt-table tbody, .sdt-table tr { display: block; }
  .sdt-table tr { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; margin-bottom: 14px; overflow: hidden; }
  .sdt-table tbody th { display: block; width: auto; background: var(--card); border-bottom: 1px solid var(--border); font-size: 15px; }
  .sdt-table td, .sdt-table td:last-child { display: block; width: auto; border-bottom: 1px solid var(--border); }
  .sdt-table td::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
  .sdt-table td.us { border-left: 4px solid var(--gold); border-right: none; }
  .sdt-table tr.theirs { border-color: #cfc5ee; }
}
@media (max-width: 520px) { .sdt-fbtn { padding: 14px; gap: 11px; } .sdt-fbtn .ic { width: 40px; height: 40px; font-size: 19px; } }


/* The shipped app uses the platform's default font (Roboto on Android and web, SF Pro on iPhone), not the
   Work Sans / Noto Serif of the design mockups. Match it so the demo looks like the real thing. */
.sd-app[data-theme][data-platform="android"] .sd-m .screen,
.sd-app[data-theme][data-platform="android"] .sd-m .screen *,
.sd-app[data-theme][data-platform="web"] .sd-w *,
.sd-app[data-theme][data-platform="web"] .sd-m .screen,
.sd-app[data-theme][data-platform="web"] .sd-m .screen * { font-family: Roboto, 'Noto Sans Devanagari', 'Segoe UI', sans-serif; }
.sd-app[data-theme][data-platform="ios"] .sd-m .screen,
.sd-app[data-theme][data-platform="ios"] .sd-m .screen * { font-family: -apple-system, 'SF Pro Text', 'Kohinoor Devanagari', Roboto, 'Noto Sans Devanagari', sans-serif; }
.sd-app .sd-m .screen .gm-tile span { font-family: 'Noto Sans Devanagari', Roboto, sans-serif; }

/* ================= responsive + touch hardening ================= */
.sdt-stage, .sdt-dev-wrap, .sdt-coach { min-width: 0; }
.sd-browser { width: 100%; max-width: 100%; min-width: 0; }
.sd-vp, .sd-vp .browser-viewport, .sd-w { min-width: 0; }
.sd-vp .sd-m-col { min-width: 0; overflow: hidden; }
.sd-vp .sd-m-col .sd-m { max-width: 100%; }
.sd-browser { max-width: 640px; }

/* narrower two-column layouts (tablet landscape, small laptops): icon-only sidebar in the Web frame */
@media (max-width: 1100px) {
  .sd-app[data-theme] .sd-w .sidebar { width: 52px; padding: 12px 6px; }
  .sd-app[data-theme] .sd-w .sidebar .side-item { font-size: 0; justify-content: center; padding: 10px 0; }
  .sd-app[data-theme] .sd-w .sidebar .brand { display: none; }
  .sd-app[data-theme] .sd-w .sidebar .side-badge { display: none; }
  .sd-app[data-theme] .sd-w .top-bar .search { width: 140px; }
}
/* tablet portrait: use the space */
@media (min-width: 600px) and (max-width: 920px) {
  .sd-app { --sdz: 1.2; }
  .sd-browser { max-width: 720px; }
  .sdt-body { padding: 24px 26px 30px; }
  .sdt-coach { max-width: 620px; margin: 0 auto; width: 100%; }
}
/* touch screens: bigger tap targets, no double-tap zoom delay */
.sdt button, .sdt a, .sd-app, .sdt-fcard { touch-action: manipulation; -webkit-tap-highlight-color: rgba(184,134,11,.18); }
@media (pointer: coarse) {
  .sdt-seg button { min-height: 44px; padding: 10px 16px; }
  .sdt-dot { width: 34px; height: 34px; font-size: 12px; }
  .sdt-fbtn { min-height: 66px; }
  .sdt-back, .sdt-restart { min-height: 44px; padding-left: 10px; padding-right: 10px; }
  .sdt-btn { min-height: 48px; }
  .sdt-fgo { min-height: 44px; padding: 12px 20px; }
  .sdt-who-card { min-height: 72px; }
}
/* notch / home-indicator phones */
.sdt-sticky { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
@media (max-height: 460px) and (orientation: landscape) { .sdt-sticky { display: none; } .sdt-step h2, .sdt-step h3.sdt-title { font-size: 22px; } }

/* App Store button (Apple logo) */
.sdt-btn.sdt-apple { background: #000; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); display: inline-flex; align-items: center; gap: 8px; }
.sdt-btn.sdt-apple:hover { background: #1a1a1a; }
.sdt-apple-logo { width: 18px; height: 18px; flex: none; }
.sdt-sticky { flex-wrap: wrap; }
.sdt-sticky a.sdt-sticky-ios { background: #000; display: inline-flex; align-items: center; gap: 6px; }
.sdt-sticky a.sdt-sticky-ios .sdt-apple-logo { width: 15px; height: 15px; }
