/* Live demo (/demo/): a role picker, a narrated step panel and a simulated phone. */
.gt-try-main { margin-block-start: 0; }
.gt-try { --gd-purple:#532ebc; --gd-purple-dark:#412493; --gd-ink:#292237; --gd-muted:#686170; --gd-line:#e5dfed; --gd-lav:#f4f0f8; --gd-lime:#bced09; --gd-terra:#b9381a; color:var(--gd-ink); font-family:var(--wp--preset--font-family--body); line-height:1.6; }
.gt-try *, .gt-try *::before, .gt-try *::after { box-sizing:border-box; }
.gt-try [hidden] { display:none !important; }
.gt-try :where(h1,h2,h3,p,ol,figure) { margin:0; }
.gt-try :where(a,button,summary,input,textarea):focus-visible { outline:3px solid var(--gd-purple); outline-offset:3px; }
.gt-try .gtd-title:focus { outline:none; }
.gtd-wrap { width:min(1120px,calc(100% - 32px)); margin-inline:auto; }

/* Hero */
.gtd-hero { background:#f7f5fb; border-bottom:1px solid var(--gd-line); padding-bottom:24px; }
.gtd-breadcrumb { display:flex; gap:10px; padding-block:16px 18px; color:var(--gd-muted); font-size:12px; }
.gtd-breadcrumb a { color:inherit; text-decoration:none; }
.gtd-breadcrumb a:hover { text-decoration:underline; }
.gtd-eyebrow { font-size:11px; font-weight:600; letter-spacing:.12em; color:var(--gd-purple); }
.gt-try h1 { font-family:var(--wp--preset--font-family--heading); font-size:clamp(28px,4vw,44px); line-height:1.25; letter-spacing:-.04em; margin-top:8px; }
.gt-try h1 em { color:var(--gd-purple); font-style:normal; }
.gtd-intro { color:var(--gd-muted); font-size:15px; margin-top:10px !important; max-width:640px; }
.gtd-content { padding-block:20px 56px; }

/* Role picker */
.gtd-roles { display:grid; gap:10px; }
.gtd-role { display:flex; align-items:center; gap:14px; min-height:72px; padding:14px 16px; border:1px solid var(--gd-line); border-radius:14px; background:#fff; color:var(--gd-ink); text-decoration:none; transition:border-color .15s, background .15s; }
.gtd-role:hover { border-color:#a894d1; background:#fcfaff; }
.gtd-role strong { display:block; font-size:15px; font-weight:600; line-height:1.35; }
.gtd-role small { display:block; color:var(--gd-muted); font-size:12px; margin-top:2px; }
.gtd-role-icon { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; border-radius:12px; background:#eee7f8; color:var(--gd-purple); }
.gtd-role-icon .gt-svg { width:22px; height:22px; }
.gtd-role-arrow { margin-left:auto; color:var(--gd-purple); font-size:18px; }
.gtd-role[aria-pressed=true] { border:2px solid var(--gd-purple); padding:13px 15px; background:#f6f2fc; }
.gtd-role[aria-pressed=true] .gtd-role-icon { background:var(--gd-purple); color:#fff; }
.is-enhanced .gtd-roles.is-compact .gtd-role { min-height:56px; padding-block:8px; }
.is-enhanced .gtd-roles.is-compact .gtd-role-icon { width:36px; height:36px; }
.is-enhanced .gtd-roles.is-compact small { display:none; }

/* Stage: narration + phone */
.gtd-stage { display:grid; gap:16px; margin-top:16px; }
.gtd-narration { border:1px solid var(--gd-line); border-radius:16px; background:#fff; padding:16px 18px; }
.gtd-progress { display:flex; align-items:center; gap:12px; }
.gtd-count { font-size:12px; font-weight:600; color:var(--gd-purple); white-space:nowrap; }
.gtd-dots { display:flex; gap:6px; list-style:none; padding:0; flex:1; }
.gtd-dots li { flex:1; height:4px; border-radius:4px; background:#eae4f1; }
.gtd-dots li.is-on { background:var(--gd-purple); }
.gtd-title { font-family:var(--wp--preset--font-family--body); font-size:19px; font-weight:600; letter-spacing:-.02em; line-height:1.35; margin-top:10px !important; }
.gtd-text { color:var(--gd-muted); font-size:14px; margin-top:6px !important; }
.gtd-hint { display:flex; gap:8px; align-items:flex-start; margin-top:10px !important; padding:9px 12px; border-radius:10px; background:#f5fbdf; color:#34420d; font-size:13px; font-weight:500; }
.gtd-hint::before { content:"👆"; }
.gtd-hint:empty { display:none; }
.gtd-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; margin-top:14px; }
.gtd-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 20px; border:0; border-radius:999px; background:var(--gd-purple); color:#fff; font:inherit; font-size:14px; font-weight:600; text-decoration:none; cursor:pointer; }
.gtd-btn:hover { background:var(--gd-purple-dark); color:#fff; }
.gtd-link { display:inline-flex; align-items:center; min-height:44px; padding:0; border:0; background:none; color:var(--gd-purple); font:inherit; font-size:14px; font-weight:600; text-decoration:none; cursor:pointer; }
.gtd-link:hover { text-decoration:underline; text-underline-offset:3px; }
.gtd-done { text-align:left; }
.gtd-done-check { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--gd-lime); color:#26300a; font-weight:700; margin-bottom:10px; }

.gtd-device { display:flex; flex-direction:column; align-items:center; }
.gtd-phone { --sb:#532ebc; --sb-fg:#fff; position:relative; display:flex; flex-direction:column; width:min(100%,360px); height:clamp(430px,calc(100svh - 290px),620px); border:9px solid #18141f; border-radius:44px; overflow:hidden; background:var(--sb); box-shadow:0 24px 60px #2a1d4a2e, 0 0 0 1px #00000014; isolation:isolate; }
.gtd-statusbar { display:flex; align-items:center; gap:8px; flex-shrink:0; height:30px; padding:0 22px 0 26px; background:var(--sb); color:var(--sb-fg); font-size:12px; font-weight:600; }
.gtd-demo-tag { padding:1px 7px; border-radius:6px; background:#ffffff2e; font-size:9px; letter-spacing:.12em; }
.gtd-phone[data-tone=light] .gtd-demo-tag { background:#532ebc1a; }
.gtd-sys { display:flex; align-items:flex-end; gap:2px; margin-left:auto; }
.gtd-sys i { width:3px; border-radius:1px; background:currentColor; }
.gtd-sys i:nth-child(1) { height:5px; } .gtd-sys i:nth-child(2) { height:7px; } .gtd-sys i:nth-child(3) { height:9px; }
.gtd-sys b { width:20px; height:10px; margin-left:6px; border:1.5px solid currentColor; border-radius:3px; background:linear-gradient(90deg,currentColor 70%,transparent 70%) content-box; padding:1px; }
.gtd-screen { position:relative; flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; background:#fff; scrollbar-width:thin; font-size:13.5px; line-height:1.45; color:#17131f; }
.gtd-device-note { margin-top:8px !important; color:var(--gd-muted); font-size:11px; }

/* The element the visitor should tap next. */
.gtd-target { position:relative; z-index:1; animation:gtd-ring 1.6s ease-in-out infinite; }
@keyframes gtd-ring { 0%,100% { box-shadow:0 0 0 3px var(--gd-lime), 0 0 0 6px #bced0955; } 50% { box-shadow:0 0 0 3px var(--gd-lime), 0 0 0 11px #bced0900; } }

/* Shared simulated UI bits */
.gt-try .gtd-screen button { font-family:inherit; color:#17131f; cursor:pointer; }
.gtd-screen input[type=checkbox] { width:18px; height:18px; margin:0; flex-shrink:0; accent-color:var(--gd-purple); }

/* 1. Camera */
.gtd-cam { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; background:radial-gradient(120% 80% at 50% 40%,#3b3a40,#121116 70%); color:#fff; }
.gtd-cam-frame { position:relative; width:58%; padding:14px; }
.gtd-cam-frame::before { content:""; position:absolute; inset:0; border-radius:18px; background:linear-gradient(#ffd54a,#ffd54a) 0 0/26px 3px, linear-gradient(#ffd54a,#ffd54a) 0 0/3px 26px, linear-gradient(#ffd54a,#ffd54a) 100% 0/26px 3px, linear-gradient(#ffd54a,#ffd54a) 100% 0/3px 26px, linear-gradient(#ffd54a,#ffd54a) 0 100%/26px 3px, linear-gradient(#ffd54a,#ffd54a) 0 100%/3px 26px, linear-gradient(#ffd54a,#ffd54a) 100% 100%/26px 3px, linear-gradient(#ffd54a,#ffd54a) 100% 100%/3px 26px; background-repeat:no-repeat; pointer-events:none; }
.gtd-sticker { display:block; width:100%; padding:0; border:0; border-radius:12px; background:none; transform:perspective(500px) rotateY(-8deg) rotateX(4deg); }
.gtd-sticker svg { display:block; width:100%; height:auto; border-radius:12px; }
.gtd-cam-line { position:absolute; left:14px; right:14px; top:14px; height:2px; background:#ffd54acc; box-shadow:0 0 12px #ffd54a; animation:gtd-scan 2.2s ease-in-out infinite alternate; pointer-events:none; }
@keyframes gtd-scan { to { top:calc(100% - 16px); } }
.gtd-cam-tip { margin-top:14px !important; font-size:12px; color:#ffffffc4; }
.gtd-cam-banner { position:absolute; top:12px; left:12px; right:12px; display:flex; align-items:center; gap:10px; padding:10px 12px; border:0; border-radius:16px; background:#ffffffeb; color:#17131f; text-align:left; box-shadow:0 8px 24px #0006; animation:gtd-drop .35s ease-out; }
.gtd-cam-banner span:first-child { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:#eee7f8; font-size:15px; }
.gtd-cam-banner b { display:block; font-size:13px; }
.gtd-cam-banner small { display:block; color:#5c5668; font-size:11.5px; }
@keyframes gtd-drop { from { transform:translateY(-120%); opacity:0; } }
.gtd-cam-shutter { position:absolute; bottom:18px; width:54px; height:54px; border-radius:50%; border:4px solid #fff; box-shadow:inset 0 0 0 3px #121116, inset 0 0 0 30px #fff; opacity:.9; }

/* 2. Public scan page (mirrors getiket-platform's scan.view.ts) */
.gtd-scan { min-height:100%; display:flex; flex-direction:column; background:var(--gd-lav); }
.gtd-scan-head { display:flex; align-items:center; gap:9px; padding:11px 16px; background:var(--gd-purple); color:#fff; }
.gtd-scan-head svg { width:24px; height:24px; }
.gtd-scan-head b, .gtd-app-bar b { font-family:var(--wp--preset--font-family--heading); font-weight:600; font-size:16px; }
.gtd-scan-main { flex:1; padding:12px 12px 4px; }
.gtd-card { background:#fff; border-radius:13px; padding:14px 13px; box-shadow:0 1px 4px #17131f14; margin-bottom:10px; }
.gtd-card h3 { font-family:var(--wp--preset--font-family--heading); font-size:15.5px; font-weight:600; line-height:1.35; margin:0 0 4px; }
.gtd-sub { color:#5c5668; font-size:12.5px; line-height:1.45; }
.gtd-plate { display:inline-block; margin-top:6px; padding:3px 10px; border:2px solid #17131f; border-radius:7px; background:#fff; font-weight:600; font-size:15px; letter-spacing:1px; }
.gtd-consent { display:flex; gap:9px; align-items:flex-start; font-size:12.5px; line-height:1.45; border-radius:8px; }
.gtd-consent u { color:var(--gd-purple); }
.gtd-cats { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:11px 0; }
.gtd-cat { border:1.5px solid #d9d3e6; border-radius:10px; background:#fff; padding:10px 6px; font-size:12.5px; font-weight:600; text-align:center; }
.gtd-cat[aria-pressed=true] { border-color:var(--gd-purple); background:var(--gd-purple); color:#fff !important; }
.gtd-screen textarea, .gtd-field input { width:100%; border:1.5px solid #d9d3e6; border-radius:10px; padding:9px 10px; font:inherit; font-size:13px; color:#17131f; background:#fff; }
.gtd-screen textarea { display:block; min-height:56px; resize:none; margin-top:4px; }
.gtd-urg { display:flex; align-items:center; gap:8px; margin:11px 0; font-weight:600; font-size:13px; }
.gtd-urg input { accent-color:var(--gd-terra) !important; }
.gtd-primary { width:100%; border:0; border-radius:999px; background:var(--gd-purple); color:#fff !important; padding:12px; font-size:14px; font-weight:600; }
.gtd-primary:disabled { opacity:.5; cursor:default !important; }
.gtd-status .gtd-ok { display:flex; align-items:center; gap:9px; font-weight:600; font-size:14.5px; }
.gtd-dot { width:10px; height:10px; flex:none; border-radius:50%; background:var(--gd-lime); animation:gtd-pulse 1.6s infinite; }
.gtd-dot.is-done { animation:none; background:#6aa000; }
@keyframes gtd-pulse { 50% { opacity:.35; } }
.gtd-reply { margin-top:9px; padding:10px 11px; border-radius:10px; background:var(--gd-lav); font-weight:600; animation:gtd-fade .3s ease-out; }
.gtd-msgs { display:flex; flex-direction:column; gap:7px; margin-top:9px; }
.gtd-msg { max-width:85%; padding:8px 11px; border-radius:12px; font-size:13px; line-height:1.4; overflow-wrap:anywhere; animation:gtd-fade .3s ease-out; }
.gtd-msg.you { align-self:flex-end; background:var(--gd-purple); color:#fff; border-bottom-right-radius:4px; }
.gtd-msg.them { align-self:flex-start; background:var(--gd-lav); border-bottom-left-radius:4px; }
.gtd-msg small { display:block; margin-top:2px; font-size:10px; opacity:.7; }
@keyframes gtd-fade { from { opacity:0; transform:translateY(4px); } }
.gtd-chatrow { display:flex; gap:7px; align-items:center; margin-top:11px; }
.gtd-field { flex:1; min-width:0; }
.gtd-field input { border-radius:999px; padding:10px 14px; }
.gtd-sendb { flex:none; display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:50%; background:var(--gd-purple); }
.gtd-sendb svg { width:17px; height:17px; fill:#fff; margin-left:2px; }
.gtd-scan-foot { padding:10px; text-align:center; color:#8b8496; font-size:11px; }

/* 3. Lock screen */
.gtd-lock { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; padding:28px 12px 0; background:linear-gradient(170deg,#2a1d55 0%,#532ebc 55%,#8f6fe0 100%); color:#fff; }
.gtd-lock-time { font-size:62px; font-weight:300; line-height:1; letter-spacing:-.02em; }
.gtd-lock-date { margin-top:6px; font-size:14px; opacity:.85; }
.gtd-notif { display:flex; gap:10px; width:100%; margin-top:34px; padding:11px 12px; border:0; border-radius:18px; background:#ffffffe6; color:#17131f; text-align:left; box-shadow:0 10px 30px #0004; animation:gtd-drop .4s ease-out; }
.gtd-notif-icon { display:grid; place-items:center; flex-shrink:0; width:34px; height:34px; border-radius:9px; background:var(--gd-purple); }
.gtd-notif-icon svg { width:22px; height:22px; }
.gtd-notif-body { flex:1; min-width:0; }
.gtd-notif-app { display:flex; justify-content:space-between; color:#5c5668; font-size:10.5px; letter-spacing:.05em; }
.gtd-notif b { display:block; margin-top:1px; font-size:14px; }
.gtd-notif p { font-size:13px; line-height:1.35; }
.gtd-lock-hint { position:absolute; bottom:14px; width:110px; height:4px; border-radius:4px; background:#fff9; }

/* 4. Owner app */
.gtd-app { min-height:100%; display:flex; flex-direction:column; background:#fff; }
.gtd-app-bar { display:flex; align-items:center; gap:10px; flex-shrink:0; min-height:50px; padding:8px 14px; background:var(--gd-purple); color:#fff; }
.gtd-app-bar .gtd-back { display:grid; place-items:center; width:30px; height:30px; margin-left:-6px; border:0; border-radius:50%; background:none; color:#fff !important; font-size:20px; }
.gtd-app-bar .gtd-resolve { margin-left:auto; padding:6px 10px; border:0; border-radius:999px; background:#ffffff26; color:#fff !important; font-size:13px; font-weight:600; }
.gtd-app-body { flex:1; padding:12px; }
.gtd-alert { padding:13px; border:1.5px solid var(--gd-purple); border-radius:16px; animation:gtd-fade .3s ease-out; }
.gtd-alert.is-resolved { border-color:#d9d3e6; }
.gtd-alert-head { display:flex; align-items:center; gap:8px; font-weight:600; font-size:15px; }
.gtd-alert-head svg { width:19px; height:19px; fill:none; stroke:var(--gd-purple); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.gtd-alert-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:7px; font-size:12px; color:#5c5668; }
.gtd-alert-meta strong { color:#17131f; font-size:13.5px; }
.gtd-badge { padding:2px 8px; border-radius:999px; background:#eee7f8; color:var(--gd-purple); font-size:10.5px; font-weight:600; letter-spacing:.04em; }
.gtd-badge.is-resolved { background:#eaf5cf; color:#3d5a00; }
.gtd-alert-note { margin-top:8px; font-size:13px; }
.gtd-alert-actions { display:flex; align-items:center; gap:12px; margin-top:11px; }
.gtd-fill { border:0; border-radius:999px; background:var(--gd-purple); color:#fff !important; padding:10px 18px; font-size:13.5px; font-weight:600; }
.gtd-text-btn { border:0; background:none; color:var(--gd-purple) !important; padding:8px 4px; font-size:13px; font-weight:600; border-radius:8px; }
.gtd-nav { display:flex; flex-shrink:0; border-top:1px solid #eee9f4; background:#fdfcff; }
.gtd-nav span { flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:7px 0 9px; font-size:10.5px; color:#5c5668; }
.gtd-nav svg { width:20px; height:20px; padding:2px 14px; box-sizing:content-box; border-radius:999px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.gtd-nav .is-on { color:#17131f; }
.gtd-nav .is-on svg { background:#e7defa; stroke:var(--gd-purple); }
.gtd-chat { min-height:100%; display:flex; flex-direction:column; background:#fff; }
.gtd-chat-body { flex:1; display:flex; flex-direction:column; gap:8px; padding:12px; }
.gtd-chat .gtd-msg { max-width:80%; }
.gtd-report-bubble b { display:block; }
.gtd-sysmsg { align-self:center; margin:4px 0; padding:5px 12px; border-radius:999px; background:#eaf5cf; color:#3d5a00; font-size:11.5px; font-weight:600; animation:gtd-fade .3s ease-out; }
.gtd-chat-input { display:flex; gap:7px; align-items:center; padding:9px 10px 12px; border-top:1px solid #eee9f4; }

/* No-JS fallback and supporting content */
.gtd-static { margin-top:28px; }
.gtd-static h2 { font-size:18px; font-weight:600; }
.gtd-static ol { margin-top:10px; padding-left:20px; color:var(--gd-muted); font-size:14px; }
.gtd-static li + li { margin-top:6px; }
.gtd-static strong { color:var(--gd-ink); }
.is-enhanced .gtd-static { display:none; }
.gtd-facts { display:grid; gap:10px; margin-top:32px; }
.gtd-facts > div { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:14px; background:#f7f5fb; font-size:13.5px; color:var(--gd-muted); }
.gtd-facts strong { color:var(--gd-ink); }
.gtd-fact-icon { display:grid; place-items:center; flex-shrink:0; width:34px; height:34px; border-radius:10px; background:#eee7f8; color:var(--gd-purple); }
.gtd-fact-icon .gt-svg { width:18px; height:18px; }
.gtd-cta { margin-top:28px; padding:24px 20px; border-radius:18px; background:var(--gd-purple); color:#fff; }
.gtd-cta h2 { font-family:var(--wp--preset--font-family--heading); font-size:clamp(20px,2.6vw,26px); line-height:1.3; letter-spacing:-.03em; }
.gtd-cta-links { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin-top:16px; }
.gtd-cta .gtd-btn { background:var(--gd-lime); color:#1e1e1e; }
.gtd-cta .gtd-btn:hover { background:#d3ff2e; color:#1e1e1e; }
.gtd-cta .gtd-link { color:#fff; }

@media (min-width:700px) {
	.gtd-wrap { width:min(1120px,calc(100% - 64px)); }
	.gtd-roles { grid-template-columns:1fr 1fr; gap:14px; }
	.gtd-facts { grid-template-columns:repeat(3,1fr); }
	.gtd-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:32px 36px; }
	.gtd-cta-links { margin-top:0; flex-shrink:0; }
}
@media (min-width:960px) {
	.gtd-content { padding-top:28px; }
	.gtd-stage { grid-template-columns:minmax(0,1fr) 380px; gap:56px; align-items:center; margin-top:28px; }
	.gtd-narration { border:0; padding:0; background:none; max-width:460px; }
	.gtd-title { font-size:26px; margin-top:16px !important; }
	.gtd-text { font-size:15.5px; margin-top:10px !important; }
	.gtd-hint { font-size:14px; margin-top:16px !important; }
	.gtd-actions { margin-top:22px; }
	.gtd-phone { width:360px; height:700px; }
}
@media (prefers-reduced-motion:reduce) {
	.gt-try *, .gt-try *::before, .gt-try *::after { animation:none !important; transition:none !important; }
}
