/* RadialDeck landing — dark base, glass surfaces, one accent. Cheap to paint: no big blur filters. */
:root {
  --bg: #07090f; --bg-2: #0c1019;
  --surface: rgba(255, 255, 255, 0.045); --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f5fa; --text-2: #a9b1c3; --text-3: #6f7890;
  --accent: #3b82f6; --accent-2: #8b5cf6; --ok: #4ade80;
  --radius: 20px; --radius-sm: 12px; --max: 1160px; --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif; --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --t-fast: 160ms; --t-base: 260ms; --t-slow: 520ms;
  --r-slice-top: #2a2e38; --r-slice-bottom: #14161e; --r-stroke: rgba(255,255,255,.45);
  --r-hover-top: #60a5fa; --r-hover-bottom: #2f6fe0; --r-hub: #101218; --r-label: #ffffff; --r-label-dim: rgba(255,255,255,.82); --r-glow: transparent;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 22px; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 14px; text-wrap: balance; max-width: 22ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 54ch; margin: 0 0 30px; }
.sub { color: var(--text-2); font-size: 17px; max-width: 60ch; margin: 0 0 36px; }
.sub a { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; }
.fine { font-size: 13px; color: var(--text-3); margin: 18px 0 0; }
[data-split] .w { display: inline-block; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: transform var(--t-base) var(--ease-out), background var(--t-base), border-color var(--t-base), box-shadow var(--t-base); }
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #5b9dff, var(--accent) 55%, #2f6fe0); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(59,130,246,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(59,130,246,.85), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 9, 15, .82); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(1px)) { .nav { background: rgba(7, 9, 15, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.nav nav { display: flex; gap: 26px; }
.nav nav a { font-size: 14px; color: var(--text-2); padding: 6px 0; position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.nav nav a:hover { color: var(--text); }
.nav nav a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav nav { display: none; } }
/* Phones: the links fold into a menu button next to Download. */
.nav-menu { display: none; position: relative; }
@media (max-width: 860px) { .nav-menu { display: block; margin-left: auto; } }
.nav-menu summary { list-style: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border-strong); cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-menu[open] summary { background: var(--surface-2); }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; display: grid; padding: 8px; border-radius: 16px; background: #0c1019; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85); z-index: 60; isolation: isolate; }
.nav-menu-panel a { padding: 13px 14px; border-radius: 10px; font-size: 16px; }
.nav-menu-panel a:hover, .nav-menu-panel a:focus-visible { background: var(--surface-2); }

.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 520px at 12% 0%, rgba(59,130,246,.28), transparent 65%),
    radial-gradient(760px 620px at 92% 30%, rgba(139,92,246,.22), transparent 65%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 85%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-demo { display: grid; gap: 18px; justify-items: center; }
.demo-stage { position: relative; width: min(440px, 88vw); aspect-ratio: 1; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--border); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); }
.demo-hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12.5px; color: var(--text-2); background: rgba(0,0,0,.35); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: opacity var(--t-slow); }
.demo-hint.is-hidden { opacity: 0; }
.ring { position: relative; width: 78%; aspect-ratio: 1; outline: none; }
.ring-svg { width: 100%; height: 100%; display: block; }
.ring-svg .slice { cursor: pointer; }
.ring-photo { position: absolute; inset: 3.125%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.ring-photo::before { content: ""; position: absolute; inset: -8%; background: var(--ph-img) center / cover no-repeat; filter: blur(var(--ph-blur, 4px)); }
.ring-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--ph-dim, .45)); }
.ring-photo + .ring-svg { position: relative; }
.ring-labels { position: absolute; inset: 0; pointer-events: none; }
.ring-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); color: var(--r-label-dim); transition: color var(--t-fast); }
.ring-static { width: min(400px, 100%); margin: 0 auto; }
.ring-static .ring-svg .slice { cursor: default; }
.feature-media { padding: 6%; background: radial-gradient(60% 60% at 50% 45%, rgba(59,130,246,.12), transparent 70%), var(--surface); }
.brand-mark { width: 26px; height: 26px; color: var(--text); }
.ring-hub { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--r-hub); border: 1px solid var(--r-stroke); display: grid; place-items: center; font-family: var(--r-font, inherit); font-size: 11px; color: var(--r-label-dim, var(--text-2)); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; text-align: center; padding: 6px; }
.demo-toast { position: absolute; bottom: 14px; left: 50%; transform: translate(-50%, 10px); opacity: 0; background: rgba(12,16,25,.94); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; white-space: nowrap; box-shadow: 0 16px 40px -14px rgba(0,0,0,.8); transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.demo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.demo-switch { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.demo-switch button { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-2); background: transparent; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background var(--t-base), color var(--t-base); min-height: 36px; }
.demo-switch button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }

.hero-marquee { margin-top: clamp(40px, 7vw, 90px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 48s linear infinite; will-change: transform; }
.marquee-track span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.how { padding: clamp(80px, 10vw, 140px) 0; }
/* Watch: the launch film and the 30-second shorts. Nothing downloads until play is pressed. */
.tour { padding: clamp(70px, 9vw, 120px) 0 0; }
.tour-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #05070c; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); aspect-ratio: 16 / 9; }
.tour-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #05070c; }
.shorts-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: clamp(36px, 5vw, 56px) 0 16px; }
.shorts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.short { margin: 0; display: grid; gap: 10px; }
.short video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #05070c; }
.short figcaption { font-size: 14px; color: var(--text-2); }
@media (max-width: 860px) {
  /* Phones: the shorts become a row you swipe, inside the section so the page itself never scrolls sideways. */
  .shorts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .short { scroll-snap-align: start; }
}
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: background var(--t-base), border-color var(--t-base), opacity var(--t-base); opacity: .78; cursor: pointer; }
.step.is-active { opacity: 1; background: var(--surface); border-color: var(--border); }
.step .num { font-family: var(--font-display); font-weight: 600; color: #60a5fa; font-size: 15px; padding-top: 4px; }
.step h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }
.how-visual { display: grid; place-items: center; }
.how-ring { position: relative; width: min(380px, 80vw); aspect-ratio: 1; }
.how-ring .ring-svg .slice { cursor: default; }
.how-cursor { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); z-index: 2; }
.how-key { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-size: 12.5px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); font-family: ui-monospace, Consolas, monospace; box-shadow: 0 6px 0 -2px rgba(0,0,0,.6); transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.how-key.is-down { transform: translate(-50%, 4px); box-shadow: 0 2px 0 -2px rgba(0,0,0,.6); background: var(--accent); }

.features { padding: 0 0 clamp(80px, 10vw, 140px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: 28px 0; }
.feature-flip .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.feature-media img { width: 100%; }
.feature-copy h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; margin: 0 0 10px; letter-spacing: -.02em; }
.feature-copy p { margin: 0; color: var(--text-2); font-size: 17px; max-width: 48ch; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature-flip .feature-media { order: 0; } .feature-media { max-width: 420px; } }
.ticks { list-style: none; margin: 40px 0 0; padding: 22px 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; color: var(--text-2); font-size: 15px; }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }

.styles { padding: clamp(80px, 10vw, 140px) 0; background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.style-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.style-preview { position: sticky; top: 90px; display: grid; gap: 14px; justify-items: center; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); transition: background var(--t-slow); }
.styles.is-light .style-preview { background: linear-gradient(160deg, #eef1f7, #d9dfe9); }
.style-preview .ring { width: 88%; }
.style-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.styles.is-light .style-bar { color: #3a4050; }
.mode-switch { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.mode-switch button { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: transparent; border: 0; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.mode-switch button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.styles.is-light .mode-switch { background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.1); }
.styles.is-light .mode-switch button { color: #3a4050; }
.styles.is-light .mode-switch button[aria-selected="true"] { background: #fff; color: #111; }
.theme-strip { display: grid; gap: 22px; }
.theme-group { display: grid; gap: 10px; }
.theme-group-head { display: flex; align-items: baseline; gap: 10px; }
.theme-group-head b { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.theme-group-head span { font-size: 12.5px; color: var(--text-3); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
@media (max-width: 860px) { .style-grid { grid-template-columns: 1fr; } .style-preview { position: static; } }
.theme { display: grid; gap: 5px; padding: 6px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: transform var(--t-base) var(--ease-out), border-color var(--t-base); }
.theme:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.theme.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.theme img { width: 100%; border-radius: 10px; aspect-ratio: 1; object-fit: cover; background: #0b0d14; transition: background var(--t-slow); }
.styles.is-light .theme img { background: #e6e9f0; }
.theme span { font-size: 12.5px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme small { color: var(--text-3); font-size: 12px; }

.stats { padding: 0 0 clamp(60px, 8vw, 100px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-grid div { padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.stats-grid b { display: block; font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats-grid span { color: var(--text-2); font-size: 14px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

.pricing { padding: 0 0 clamp(80px, 10vw, 140px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.plan-pro { border-color: rgba(59,130,246,.6); background: linear-gradient(180deg, rgba(59,130,246,.12), rgba(59,130,246,.03)); box-shadow: 0 30px 80px -40px rgba(59,130,246,.6); }
.plan .badge { position: absolute; top: -12px; left: 24px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #2563eb; color: #fff; }
.plan h3 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.plan .amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 0; }
.plan .per { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; color: var(--text-2); font-size: 15px; }
.plan li { padding: 8px 0; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.plan li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 4px; background: var(--ok); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan .btn { margin-top: auto; justify-content: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.faq { padding: 0 0 clamp(80px, 10vw, 140px); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--text-3); transition: transform var(--t-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }

.final-cta { padding: 0 0 clamp(80px, 10vw, 140px); }
.final-card { text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(800px 300px at 50% 0%, rgba(59,130,246,.22), transparent 70%), var(--surface); }
.final-card .h2 { margin: 0 auto 10px; }
.final-card p { color: var(--text-2); margin: 0 0 26px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-id { display: flex; flex-direction: column; gap: 10px; }
.social { display: flex; gap: 4px; margin-left: -8px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-3); transition: color .15s, background .15s; }
.social a:hover, .social a:focus-visible { color: var(--text); background: var(--surface-2); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Nested demo: submenu dots + back hub */
.ring-label.has-sub::after { content: ""; position: absolute; right: -4px; top: 50%; width: 3px; height: 14px; margin-top: -7px; background: radial-gradient(circle, currentColor 1.4px, transparent 1.6px) 0 0 / 3px 5px repeat-y; opacity: .8; }
.ring.is-nested .ring-hub { cursor: pointer; pointer-events: auto; }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Playground */
.playground { padding: 0 0 clamp(80px, 10vw, 140px); }
.playground .sub kbd { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 7px; font-family: inherit; font-size: .92em; }
.play-window { border-radius: var(--radius); border: 1px solid var(--border-strong); background: #0f1320; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); overflow: hidden; }
.play-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.play-apps { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.play-app { font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); background: transparent; border: 0; padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.play-app[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.play-title { flex: 1; text-align: center; font-size: 13px; color: var(--text-2); }
.play-dots { display: inline-flex; gap: 6px; }
.play-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
/* Phones: the app tabs are what matters; the title and window dots made the bar wider than the screen. */
@media (max-width: 560px) { .play-title, .play-dots { display: none; } .play-apps { flex: 1; justify-content: space-between; } }
.play-stage { position: relative; height: clamp(360px, 48vw, 520px); cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: none; outline: none; background: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 100% 28px; }
.play-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.play-output { margin: 0; padding: 22px 26px; color: var(--text-2); pointer-events: none; }
.play-output .np { margin: 0; font: 15px/1.7 "Cascadia Mono", Consolas, ui-monospace, monospace; white-space: pre-wrap; }
.play-window[data-app="explorer"] .play-stage, .play-window[data-app="outlook"] .play-stage { background: none; }
.ex-crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.ex-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 420px; }
.ex-files li { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; }
.ex-files li.is-sel { background: rgba(59,130,246,.18); box-shadow: inset 0 0 0 1px rgba(59,130,246,.45); color: var(--text); }
.ex-files svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex-files li ul { list-style: none; grid-column: 1 / -1; margin: 4px 0 0 22px; padding: 0; display: grid; gap: 2px; color: var(--text-3); }
.ex-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); font: 12.5px "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--text); max-width: 100%; }
.ex-chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.ex-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-term { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-height: 46%; overflow: hidden; padding: 12px 16px; background: #0c0c0c; color: #cccccc; border-top: 1px solid var(--border-strong); font: 13px/1.5 "Cascadia Mono", Consolas, ui-monospace, monospace; white-space: pre-wrap; }
.caret { display: inline-block; width: 8px; height: 1em; vertical-align: text-bottom; background: currentColor; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ol { display: grid; grid-template-columns: minmax(180px, 250px) 1fr; gap: 18px; height: 100%; font-size: 14px; }
.ol-list { display: grid; align-content: start; gap: 4px; border-right: 1px solid var(--border); padding-right: 14px; }
.ol-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.ol-item:first-child { background: var(--surface-2); }
.ol-item b { font-weight: 500; }
.ol-item.is-unread b { font-weight: 700; color: var(--text); }
.ol-item.is-unread span { font-weight: 600; color: var(--accent); }
.ol-item small { color: var(--text-3); font-size: 12px; }
.ol-read { display: grid; align-content: start; gap: 10px; }
.ol-meta { display: grid; gap: 2px; } .ol-meta b { font-size: 17px; color: var(--text); } .ol-meta span { color: var(--text-3); font-size: 13px; }
.ol-read p { margin: 0; line-height: 1.55; }
.ol-compose { margin-top: 8px; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.04); }
.ol-compose > div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.ol-compose small { color: var(--text-3); } .ol-compose > div span { color: var(--text); min-height: 1.2em; }
.ol-compose pre { margin: 0; padding: 12px; min-height: 64px; font: 13.5px/1.55 var(--font-body); white-space: pre-wrap; color: var(--text); }
.ol-head { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.ol-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ol-day { min-height: 150px; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: grid; align-content: start; gap: 6px; }
.ol-day b { font-size: 12px; color: var(--text-3); font-weight: 600; }
.ol-day i { font-style: normal; font-size: 12px; padding: 5px 7px; border-radius: 6px; background: rgba(59,130,246,.22); color: var(--text); border-left: 3px solid var(--accent); }
@media (max-width: 720px) { .ol { grid-template-columns: 1fr; } .ol-list { display: none; } .ol-cal { grid-template-columns: repeat(2, 1fr); } }
.play-ring { position: absolute; width: min(300px, 70vw); aspect-ratio: 1; opacity: 0; pointer-events: none; transform: scale(.9); transition: opacity 120ms, transform 160ms var(--ease-out); }
.play-ring.is-open { opacity: 1; transform: none; }
.play-ring .ring-svg .slice { cursor: default; }
.play-log { min-height: 42px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--ok); font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; }
.play-log:empty::before { content: "Your last action shows here."; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- Theme studio + gallery (themes.html) ------------------------------------------- */
.studio-hero { padding: clamp(90px, 12vw, 150px) 0 clamp(30px, 4vw, 50px); }
.studio-hero .display { max-width: 16ch; }
.studio-hero .lede { max-width: 62ch; color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }

.studio { padding: 0 0 clamp(70px, 9vw, 120px); }
.studio-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(280px, 420px); gap: clamp(24px, 4vw, 52px); align-items: start; }
.studio-preview { position: sticky; top: 86px; display: grid; gap: 14px; }
.studio-stage { display: grid; place-items: center; padding: clamp(18px, 3vw, 34px); border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); transition: background var(--t-slow); }
.studio-stage.is-light { background: linear-gradient(160deg, #eef1f7, #d9dfe9); }
.studio-stage .ring { width: min(420px, 100%); }
.studio-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.studio-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.studio-note code { font-size: .92em; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.studio-status { min-height: 20px; margin: 0; font-size: 13.5px; color: var(--ok); }
.studio-json { max-height: 340px; overflow: auto; margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font: 12.5px/1.5 "Cascadia Mono", Consolas, ui-monospace, monospace; color: var(--text-2); }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.studio-side { display: grid; gap: 14px; }
.ctl { display: grid; gap: 6px; }
.ctl > label { display: grid; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ctl > label small { font-weight: 400; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.ctl input[type="text"], .ctl select { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.ctl-group { border-top: 1px solid var(--border); }
.ctl-group:last-child { border-bottom: 1px solid var(--border); }
.ctl-group summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ctl-group summary::-webkit-details-marker { display: none; }
.ctl-group summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--text-3); }
.ctl-group[open] summary::after { content: "−"; }
.ctl-group summary:hover { color: var(--text); }
.ctl-body { display: grid; gap: 14px; padding: 0 2px 18px; }
.ctl.is-inline { grid-template-columns: 1fr 200px; align-items: center; gap: 12px; }
.ctl-photo { display: flex; flex-wrap: wrap; gap: 8px; }
.ctl-colour { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; }
.ctl-pct { min-width: 40px; text-align: right; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ctl-colour input[type="color"] { width: 52px; height: 34px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.ctl-slider { display: grid; grid-template-columns: 1fr 72px; gap: 10px; align-items: center; }
.ctl-slider span { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.ctl-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer; }
.studio-side input[type="range"] { width: 100%; accent-color: var(--accent); }

.gallery, .community { padding: 0 0 clamp(70px, 9vw, 120px); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 30px; }
.gal { margin: 0; display: grid; gap: 8px; padding: 10px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.gal img { width: 100%; border-radius: 10px; aspect-ratio: 1; object-fit: cover; background: #0b0d14; }
.gal-ring { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: #0b0d14; }
.gal-ring .ring { width: 92%; }
.gal-ring .ring-label span, .gal-ring .ring-hub { font-size: 0; }
.gal-ring .ring-label svg { width: 15px; height: 15px; }
.gal figcaption { display: grid; gap: 1px; }
.gal figcaption b { font-size: 13.5px; }
.gal figcaption code { font-size: 11.5px; color: var(--text-3); }
.gal-use { font: inherit; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; transition: background var(--t-base), border-color var(--t-base); }
.gal-use:hover { background: var(--surface-2); border-color: var(--accent); }

#community .gallery-grid { display: none; }
#community.has-themes .gallery-grid { display: grid; }
.community-cta { margin-top: 30px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.community-cta h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.community-cta ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 9px; color: var(--text-2); font-size: 15px; line-height: 1.6; }

@media (max-width: 920px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-preview { position: static; }
}
@media (max-width: 440px) { .ctl.is-inline { grid-template-columns: 1fr; } }
.styles-cta { margin: 26px 0 0; }

/* ---- Recorded clips ------------------------------------------------------------------ */
.clips { padding: 0 0 clamp(60px, 8vw, 110px); }
.clip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 48px); margin-top: 34px; }
@media (max-width: 700px) { .clip-grid { grid-template-columns: 1fr; } }
.clip { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.clip figcaption { display: grid; gap: 4px; max-width: 42ch; }
.clip figcaption b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.clip figcaption span { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---- Feature showcase (features.html) ---------------------------------------------------- */
.fx-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 60px); }
.fx-hero .lead { max-width: 64ch; }
.fx-hero em { font-style: normal; color: var(--text); font-weight: 600; }
.fx-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .fx-stats { grid-template-columns: repeat(3, 1fr); } }
.fx-stats li { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); display: grid; gap: 2px; }
.fx-stats b { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.fx-stats span { font-size: 13px; color: var(--text-2); }

.fx-chips { position: sticky; top: 66px; z-index: 40; background: rgba(7, 9, 15, .86); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(1px)) { .fx-chips { background: rgba(7, 9, 15, .66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.fx-chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.fx-chips a { flex: none; font-size: 13.5px; color: var(--text-2); padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.fx-chips a:hover { color: var(--text); }
.fx-chips a.is-on { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }

.fx-section { padding: clamp(96px, 11vw, 160px) 0 0; scroll-margin-top: 120px; }
.fx-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 48px); }
.fx-head .sub { margin-bottom: 0; }
.fx-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.fx-flip .fx-media { order: 2; }
@media (max-width: 860px) { .fx-row { grid-template-columns: 1fr; } .fx-flip .fx-media { order: 0; } }
.fx-media { position: relative; margin: 0; border-radius: 24px; border: 1px solid var(--border); overflow: hidden; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; container-type: inline-size;
  background: radial-gradient(60% 60% at 50% 45%, rgba(59,130,246,.14), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.fx-copy h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.fx-copy p { color: var(--text-2); margin: 0 0 14px; max-width: 46ch; font-size: 17px; line-height: 1.65; }
.fx-copy a { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; }
.fx-meta { font-size: 14px; line-height: 2.1; }
kbd { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--text); background: linear-gradient(var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 7px; padding: 2px 8px; min-width: 26px; display: inline-block; text-align: center; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.tag-pro { color: #c4b5fd; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.4); }

.fx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 48px; margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--border); }
.fx-card { display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; }
.fx-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 6px 0 6px; }
.fx-card p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 0; }
.fx-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #93c5fd; background: rgba(59,130,246,.14); border: 1px solid rgba(59,130,246,.3); }
.fx-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


/* A scene: the site's ring, plus pressed keys above and a result line below. */
.stage { position: absolute; inset: 0; display: grid; place-items: center; }
.stage .ring { width: 74%; transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); }
.stage .ring.is-gone { opacity: 0; transform: scale(.92); }
.stage-hud { position: absolute; top: 14px; right: 14px; left: 14px; display: flex; justify-content: flex-end; gap: 6px; min-height: 28px; }
.stage-ctx { font-size: 12.5px; font-weight: 500; color: var(--text-2); background: rgba(12,16,25,.8); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fx-press .25s var(--ease-out); }
.stage-pointer { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -2px 0 0 -4px; fill: #fff; stroke: #0b0d14; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); opacity: 0; transition: transform .38s var(--ease-out), opacity var(--t-base); pointer-events: none; }
.stage.has-pointer .stage-pointer { opacity: 1; }
.stage-hud kbd { font-size: 14px; padding: 4px 10px; animation: fx-press .25s var(--ease-out); }
@keyframes fx-press { from { transform: translateY(3px); opacity: .4; } }
.stage-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); max-width: 88%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 12px; background: rgba(12,16,25,.85); border: 1px solid var(--border-strong); opacity: 0; transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); }
.stage-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.stage-toast::before { content: "✓ "; color: var(--ok); }

.stage-doc { position: absolute; inset: 22% 12%; border-radius: 12px; background: #f4f6fb; color: #1f2430; padding: 18px 20px; font-size: 14px; display: grid; align-content: start; gap: 8px; opacity: 0; transition: opacity var(--t-base); }
.stage-doc p { margin: 0; }
.stage-doc .is-target { position: relative; font-weight: 600; }
.stage-doc .is-target::after { content: ""; position: absolute; inset: -5px -8px; border: 2px dashed #3b82f6; border-radius: 4px; background: rgba(59,130,246,.08); transform-origin: left; transform: scaleX(0); }
.stage.is-snip .stage-doc { opacity: 1; }
.stage.is-snip::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.stage.is-snip .stage-doc .is-target::after { animation: fx-marquee 1s .3s var(--ease-out) forwards; }
@keyframes fx-marquee { to { transform: scaleX(1); } }

.stage-offer { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(12,16,25,.92); border: 1px solid var(--border-strong); font-size: 13.5px; line-height: 1.45; color: var(--text-2); opacity: 0; transform: translateY(10px); transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); }
.stage-offer b { display: block; color: var(--text); margin-bottom: 2px; }
.stage.is-offer .stage-offer { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .stage .ring, .stage-toast, .stage-offer, .fx-card { transition: none; } .stage-hud kbd { animation: none; } }
[data-scene="themes"] .stage-toast::before { content: none; }
.features-more { margin: 30px 0 0; }
.nav nav a[aria-current="page"] { color: var(--text); }
/* A demo ring smaller than the showcase size: labels and icons shrink with it so they stay in their slices. */

/* Generated program pages (for/), shared rings (rings.html) and the comparison page */
.doc-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 36px); }
.doc-hero .display { font-size: clamp(36px, 5.2vw, 64px); }
.doc-hero .lead { max-width: 64ch; }
.doc-hero .eyebrow a { color: var(--text); }
.doc-section { padding: clamp(28px, 4vw, 52px) 0; }
.doc-section p { color: var(--text-2); max-width: 70ch; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 28px; }
.acts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.acts li { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.acts li b { font-weight: 600; }
.acts li span { color: var(--text-2); font-size: 14px; }
.rel { display: grid; gap: 8px; }
.rel a, .rel-plain { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.rel a:hover { border-color: var(--border-strong); background: var(--surface-2); }
.rel span span, .rel a span { color: var(--text-3); font-size: 14px; }
.rel-plain { color: var(--text-2); }
.rel-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ring-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.ring-card .ring-static { width: min(260px, 100%); margin-bottom: 10px; }
.ring-card h2 { font-family: var(--font-display); font-size: 24px; margin: 0; }
.ring-card .meta { color: var(--text-3); font-size: 14px; margin: 0; }
.ring-card p { margin: 0 0 10px; }
.ring-card .cta-row { margin-top: auto; }
.cmp { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.cmp th { color: var(--text-2); font-weight: 600; }
.cmp td:first-child { color: var(--text-2); width: 26%; }
@media (max-width: 760px) { .doc-cols { grid-template-columns: 1fr; } .cmp { font-size: 14px; } .cmp th, .cmp td { padding: 10px 8px; } }

/* Microsoft Store badge (official artwork) and the direct installer under it */
.store-badge { display: inline-block; line-height: 0; border-radius: 6px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: 3px; }
.store-badge img { width: 200px; height: auto; }
.alt-download { display: block; margin-top: 10px; font-size: 14px; color: inherit; opacity: .7; }
.alt-download:hover { opacity: 1; }

/* Program icons and tiles (generated by build/app-pages.py; icons in assets/apps) */
.app-ico { display: inline-block; flex: none; width: auto; border-radius: 9px; object-fit: contain; vertical-align: middle; }
.app-mono { --s: 32px; width: var(--s); height: var(--s); display: inline-grid; place-items: center; border-radius: calc(var(--s) * .26);
  background: linear-gradient(135deg, hsl(var(--hue) 55% 42%), hsl(calc(var(--hue) + 30) 60% 30%)); color: #fff;
  font: 700 calc(var(--s) * .38)/1 var(--font-display); letter-spacing: -.02em; }
.programs { padding: 0 0 clamp(80px, 10vw, 140px); }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-top: 28px; }
.prog-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-base) var(--ease-out); }
.prog-tile:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.prog-tile .app-ico { width: 40px; height: 40px; }
.prog-tile span { display: grid; gap: 2px; min-width: 0; }
.prog-tile b { font-weight: 600; line-height: 1.25; }
.prog-tile small { color: var(--text-3); font-size: 13px; }
.prog-all { margin: 22px 0 0; }
.prog-title { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.prog-title .display { margin-bottom: 22px; }
.prog-title .app-ico { width: clamp(52px, 6vw, 72px); height: clamp(52px, 6vw, 72px); margin-bottom: 22px; border-radius: 16px; }
.rel-name { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-size: inherit !important; }
.rel .app-ico { width: 24px; height: 24px; border-radius: 6px; }
.rel-grid .app-ico { width: 28px; height: 28px; }
.rel a, .rel-plain { align-items: center; }
.rel .app-mono { color: #fff !important; font-size: calc(var(--s) * .38) !important; opacity: 1; }
.rel a > span:last-child, .rel-plain > span:last-child { white-space: nowrap; }

/* Shared rings: previews drawn by the app itself */
.rings-grid { align-items: stretch; }
.ring-card { align-items: center; text-align: center; }
.ring-card .ring-img { width: min(300px, 100%); height: auto; margin: 4px auto 14px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.ring-card h2 { display: inline-flex; align-items: center; gap: 10px; }
.ring-card h2 .app-ico { width: 28px; height: 28px; border-radius: 7px; }
.ring-card .cta-row { justify-content: center; gap: 10px; }

/* Phones and tablets: RadialDeck installs on a PC, so the download buttons there send the link instead (phone.js). */
.phone-only { display: none; }
.is-mobile .pc-only { display: none; }
.is-mobile .btn.phone-only { display: inline-flex; }
.is-mobile p.phone-only { display: block; }
.pc-sheet { width: min(460px, calc(100% - 24px)); max-width: none; margin: auto auto 12px; padding: 22px 20px 12px; border-radius: 22px; border: 1px solid var(--border-strong); background: #0c1019; color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.pc-sheet::backdrop { background: rgba(3, 5, 10, .72); }
.pc-sheet h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.pc-sheet p { margin: 0; color: var(--text-2); font-size: 15px; }
.pc-actions { display: grid; gap: 10px; margin: 18px 0 6px; }
.pc-actions .btn { justify-content: center; width: 100%; }
.pc-sheet .pc-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pc-more a { font-size: 14px; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; }
.pc-more button { font: inherit; font-size: 14px; color: var(--text-2); background: none; border: 0; padding: 12px 4px; cursor: pointer; }

/* Hero clip: phones and small tablets only. On a PC the live ring next to the headline does this job. */
.hero-clip { display: none; }
@media (max-width: 960px) {
  .hero-clip { display: block; margin: -6px 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #05070c; aspect-ratio: 720 / 526; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
  .hero-clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
}

/* Phones: long sections become rows you swipe, so the page is about half as tall. The next card peeks in as the hint. */
@media (max-width: 700px) {
  .clip-grid, .feature-list, .theme-grid {
    display: grid; grid-template-columns: none; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .clip-grid::-webkit-scrollbar, .feature-list::-webkit-scrollbar, .theme-grid::-webkit-scrollbar { display: none; }
  .clip-grid, .feature-list { grid-auto-columns: 86%; gap: 14px; }
  .clip, .feature, .theme { scroll-snap-align: start; }
  .feature, .feature-flip { grid-template-columns: 1fr; align-content: start; gap: 18px; padding: 8px 0 0; }
  .feature-media { max-width: none; }
  .feature-copy p { font-size: 16px; }
  .theme-grid { grid-auto-columns: 92px; gap: 8px; padding-bottom: 4px; }
  .theme-strip { gap: 16px; }
  .prog-tile:nth-child(n+13) { display: none; }
  .how-ring { width: min(260px, 70vw); }
  .how { padding-bottom: 40px; }
}.is-mobile .cta-row [data-send-pc] { order: -1; }


/* ---- The documents (blog, /for, shared rings, vs Kando) in the new site's look: the desktop's Windows 11 dark,
   its sky at the top, its light-blue accent and Windows corners. Only pages with <main class="doc">. ---- */
:root:has(main.doc) {
  --bg: #19191d; --bg-2: #202025; --surface: rgba(255, 255, 255, .05); --surface-2: rgba(255, 255, 255, .085);
  --text-2: #b6bac6; --text-3: #858a9b; --accent: #4cc2ff; --accent-2: #c4a1ff; --radius: 12px; --radius-sm: 8px;
}
:root:has(main.doc) body { background: linear-gradient(180deg, rgba(36, 48, 92, .55), rgba(141, 90, 140, .16) 260px, transparent 520px) no-repeat, var(--bg); }
:root:has(main.doc) .nav { background: rgba(28, 28, 34, .72); }
:root:has(main.doc) .brand-mark { color: var(--accent); }
:root:has(main.doc) .nav .btn-primary { border-radius: 6px; background: var(--accent); color: #0b0f1e; box-shadow: 0 8px 24px -12px rgba(76, 194, 255, .8); }
.doc .btn { border-radius: 6px; padding: 10px 18px; font-weight: 600; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); }
.doc .btn:hover { background: rgba(255, 255, 255, .11); transform: none; }
.doc .btn-primary { background: var(--accent); border-color: transparent; color: #0b0f1e; box-shadow: 0 8px 24px -12px rgba(76, 194, 255, .8); }
.doc .btn-primary:hover { background: #6ccfff; }
.doc .btn-ghost { background: transparent; }
.doc .btn-lg { padding: 12px 22px; }
.doc .eyebrow { color: var(--text-3); }
.doc .inline-link { color: #7cc4ff; }
.doc .acts li, .doc .rel a, .doc .rel-plain { border-radius: 8px; }
.doc .acts li { border-left: 3px solid rgba(76, 194, 255, .55); }
.doc .prog-title .app-ico { border-radius: 14px; }

/* Inside the desktop's Browser window (site/os/apps/browser.js puts rd-embed on <html>): the window has the chrome. */
html.rd-embed .nav, html.rd-embed .footer, html.rd-embed .skip { display: none; }
html.rd-embed body { background: linear-gradient(180deg, rgba(36, 48, 92, .45), transparent 360px) no-repeat, #1d1d21; }
html.rd-embed .doc-hero { padding-top: clamp(28px, 4vw, 52px); }
html.rd-embed .doc-section:last-child { padding-bottom: 56px; }
