/* Try-it panel: one server-rendered block for a hosted phone demo, used on the idea page and the homepage stage.
   Both routes render; once the device is known, JavaScript hides the one that does not apply. */
.try-phone{--try-bg:#0f1a26;--try-ink:#f5f1e9;--try-muted:#b7c1c9;--try-line:#ffffff24;--try-accent:var(--mint,#9ce8dc);--try-button-ink:#101924;--try-qr:#fff;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);background:var(--try-bg);color:var(--try-ink);border:1px solid var(--try-line);overflow:hidden}
.try-phone-media{position:relative;margin:0;min-height:360px;background:#0b1118;overflow:hidden}
.try-phone .try-phone-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.try-phone .try-phone-handset{position:absolute;right:6%;bottom:18px;width:22%;max-width:168px;min-width:92px;height:auto;aspect-ratio:750/1624;object-fit:cover;border:2px solid #0c0d12;border-radius:16px;box-shadow:0 22px 46px #00000088}
.try-phone-media figcaption{position:absolute;left:20px;bottom:18px;max-width:50%;margin:0;font-size:10px;line-height:1.5;letter-spacing:.14em;text-transform:uppercase;color:#fff;text-shadow:0 1px 8px #000}
.try-phone-panel{display:flex;flex-direction:column;gap:18px;padding:30px 32px 28px;border-left:1px solid var(--try-line)}
.try-phone-eyebrow{margin:0;font-size:10px;line-height:1.5;letter-spacing:.14em;text-transform:uppercase;color:var(--try-accent)}
.try-phone-title{margin:0;font-size:clamp(24px,2.3vw,32px);line-height:1.08;letter-spacing:-.03em;font-weight:500}
.try-phone-lede{margin:0;font-size:14px;line-height:1.6;color:var(--try-muted);max-width:44ch}
.try-phone-ways{display:grid;gap:16px}
/* Links carry their own ink. Each colour rule is scoped under .try-phone so a host page's
   "a{color:inherit}" rule (the playground homepage uses .pg-home a) cannot outrank it. */
.try-phone .try-phone-open{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:56px;padding:15px 22px;background:var(--try-accent);color:var(--try-button-ink);font-size:15px;font-weight:600;line-height:1.3;border:1px solid var(--try-accent);border-radius:2px;text-decoration:none;transition:filter .2s}
.try-phone .try-phone-open:hover{filter:brightness(1.06)}
.try-phone-open>span{font-size:21px;font-weight:400;line-height:1}
.try-phone-qr{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center}
.try-phone-qr-code{display:block;width:170px;padding:10px;background:var(--try-qr);border-radius:4px}
.try-phone .try-phone-qr-code img{display:block;width:150px;height:150px;object-fit:contain}
.try-phone-qr p{margin:0;font-size:13px;line-height:1.55;color:var(--try-muted);overflow-wrap:anywhere}
.try-phone .try-phone-qr a{display:inline-block;color:var(--try-ink);font-weight:500;border-bottom:1px solid var(--try-accent)}
.try-phone-steps{margin:0;padding:18px 0 0;list-style:none;counter-reset:try-step;display:grid;gap:12px;border-top:1px solid var(--try-line)}
.try-phone-steps li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;font-size:13px;line-height:1.5;color:var(--try-muted)}
.try-phone-steps li::before{counter-increment:try-step;content:counter(try-step,decimal-leading-zero);font-size:11px;letter-spacing:.08em;color:var(--try-accent);line-height:1.9}
.try-phone-steps strong{display:block;color:var(--try-ink);font-weight:500}
.try-phone-note{margin:0;font-size:11px;line-height:1.55;color:var(--try-muted)}
.try-phone-foot{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;min-height:60px;padding:14px 22px;border-top:1px solid var(--try-line);font-size:11px;line-height:1.5;color:var(--try-muted)}
.try-phone-foot p{margin:0}
.try-phone .try-phone-foot a{display:inline-flex;align-items:center;gap:14px;padding:6px 0;color:var(--try-ink);border-bottom:1px solid #ffffff50}
.try-phone .try-phone-foot a:hover{color:var(--try-accent);border-color:var(--try-accent)}
/* Hide only the route that does not apply. Without JavaScript, both remain available. */
.try-phone[data-try-device="phone"] .try-phone-qr{display:none}
.try-phone[data-try-device="desktop"] .try-phone-open{display:none}
@media(max-width:1100px){.try-phone{grid-template-columns:minmax(0,1fr) minmax(300px,.95fr)}.try-phone-panel{padding:26px 24px 24px}}
@media(max-width:900px){.try-phone{grid-template-columns:1fr}.try-phone-media{min-height:0;aspect-ratio:16/9}.try-phone .try-phone-handset{width:20%;bottom:14px}.try-phone-panel{border-left:0;border-top:1px solid var(--try-line)}
/* On a phone the one thing that matters is the Open button: put the panel first and the picture after it. */
.try-phone[data-try-device="phone"] .try-phone-panel{order:1;border-top:0;border-bottom:1px solid var(--try-line)}.try-phone[data-try-device="phone"] .try-phone-media{order:2}.try-phone[data-try-device="phone"] .try-phone-foot{order:3}}
@media(max-width:760px){.try-phone-panel{padding:22px 20px 20px;gap:16px}.try-phone-title{font-size:24px}.try-phone-lede{font-size:13px}.try-phone-qr{grid-template-columns:1fr;gap:12px}.try-phone-qr-code{width:150px;padding:8px}.try-phone .try-phone-qr-code img{width:134px;height:134px}.try-phone-steps li{font-size:12px}.try-phone-media figcaption{font-size:9px;left:14px;bottom:12px}.try-phone-foot{padding:12px 16px}}
@media print{.try-phone{display:block;background:#fff;color:#152932;border-color:#bacbc6}.try-phone-media{display:none}.try-phone-open,.try-phone-foot{display:none!important}.try-phone-panel{border:0;padding:0}.try-phone-lede,.try-phone-qr p,.try-phone-steps li,.try-phone-note{color:#344c55}.try-phone-steps strong,.try-phone-qr a{color:#152932}.try-phone-qr{display:grid!important}}
