/* ===== Windur — premium dark landing ===== */
:root {
  --bg: #0a0e1a;
  --bg-2: #0c1222;
  --ink: #eaf0ff;
  --muted: #9aa7c7;
  --muted-2: #7280a3;
  --accent: #2b6bff;
  --accent-2: #58c8ff;
  --line: rgba(120, 150, 220, 0.14);
  --card: rgba(255, 255, 255, 0.035);
  --card-line: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --container: 1100px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Background glows */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 50% -8%, rgba(43, 107, 255, 0.28), transparent 60%),
    radial-gradient(700px 500px at 88% 8%, rgba(88, 200, 255, 0.16), transparent 55%),
    radial-gradient(800px 700px at 8% 30%, rgba(43, 107, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3b78ff, var(--accent));
  box-shadow: 0 8px 24px -6px rgba(43, 107, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 14px 34px -8px rgba(43, 107, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }

/* "Coming soon" stopgap — keep the look, drop the interactivity */
.btn-soon { cursor: default; opacity: 0.78; }
.btn-soon:hover, .btn-soon:active { transform: none; box-shadow: none; }
.btn-soon.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.link-soon { cursor: default; opacity: 0.6; }
.link-soon:hover { color: var(--muted); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 14, 26, 0.62);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 12px rgba(43, 107, 255, 0.5)); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav-links > a:not(.btn):hover { color: var(--ink); }

/* ===== Hero (demo is the centerpiece) ===== */
.hero {
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 26px);
  text-align: center;
  padding: clamp(14px, 2.6vh, 30px) 24px clamp(18px, 3vh, 36px);
}
.hero-copy { max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  background: rgba(43, 107, 255, 0.12);
  border: 1px solid rgba(88, 200, 255, 0.25);
  border-radius: 999px;
}
.hero-title {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(120deg, #6aa3ff 0%, var(--accent-2) 60%, #9fe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 720px;
  margin: 12px auto 0;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted-2); }
.hero-demo { width: 100%; }

/* ===== Sections ===== */
.section { padding: 64px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

/* ===== Feature grid ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 200, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--accent-2);
  background: linear-gradient(180deg, rgba(43, 107, 255, 0.22), rgba(43, 107, 255, 0.08));
  border: 1px solid rgba(88, 200, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== How it works ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
}
.step {
  flex: 1;
  max-width: 320px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b78ff, var(--accent));
  box-shadow: 0 8px 22px -6px rgba(43, 107, 255, 0.7);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-arrow {
  display: flex;
  align-items: center;
  font-size: 28px;
  color: var(--accent-2);
  opacity: 0.7;
}

/* ===== Screenshot ===== */
.shot { margin: 0; text-align: center; }
.shot-frame {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1426;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(43, 107, 255, 0.18),
    0 40px 90px -30px rgba(43, 107, 255, 0.55),
    0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
.shot-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(88, 200, 255, 0.5), transparent 40%, rgba(43, 107, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }

/* ===== Pricing ===== */
.pricing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.pricing-left h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-top: 14px; }
.pricing-lead { color: var(--muted); font-size: 17px; margin: 14px 0 24px; }
.includes { list-style: none; margin: 0 0 28px; padding: 0; }
.includes li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.includes li:last-child { border-bottom: 0; }
.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b78ff, var(--accent));
  box-shadow: 0 0 12px rgba(43, 107, 255, 0.6);
}
.includes li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.reqs h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 6px; }
.reqs p { margin: 0; color: var(--muted); font-size: 15px; }

.pricing-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(43, 107, 255, 0.14), rgba(43, 107, 255, 0.03));
  border: 1px solid rgba(88, 200, 255, 0.28);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 50px -20px rgba(43, 107, 255, 0.5);
}
.price-label { margin: 0; color: var(--accent-2); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.price { margin: 8px 0 2px; }
.price-amt { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; }
.price-sub { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.pricing-card .btn { margin-bottom: 12px; }
.price-foot { margin: 10px 0 0; color: var(--muted-2); font-size: 13px; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 22, 0.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.copyright { margin: 0; color: var(--muted-2); font-size: 13px; }

/* ===== Thank-you page ===== */
.ty {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px 40px;
}
.ty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #3b78ff, var(--accent));
  box-shadow: 0 16px 40px -10px rgba(43, 107, 255, 0.75);
}
.ty h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.ty-lead { color: var(--muted); font-size: 18px; margin: 20px auto 32px; max-width: 540px; }
.ty-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.ty-steps {
  text-align: left;
  max-width: 560px;
  margin: 40px auto 0;
  list-style: none;
  padding: 0;
  counter-reset: ty;
}
.ty-steps li {
  position: relative;
  counter-increment: ty;
  padding: 18px 18px 18px 64px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 15px;
}
.ty-steps li strong { color: var(--ink); display: block; margin-bottom: 2px; font-weight: 600; }
.ty-steps li::before {
  content: counter(ty);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b78ff, var(--accent));
}
.ty-back { display: inline-block; margin-top: 36px; color: var(--accent-2); font-weight: 600; font-size: 15px; }
.ty-back:hover { color: #9fe0ff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; padding: 36px; }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 480px; width: 100%; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links > a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 24px 18px 36px; gap: 22px; }
  .section { padding: 48px 20px; }
  .pricing { padding: 26px; }
  .shot-bar { height: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Interactive synthetic picker demo (CSS-rendered — no real screenshots, privacy) ===== */
.shot-bar-title { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted-2); }

.demo-stage {
  position: relative;
  min-height: clamp(300px, 40vh, 440px);
  background: radial-gradient(120% 120% at 50% 0%, #0e1730 0%, #070b16 100%);
}

/* Fake app surface — synthetic chat thread */
.demo-app {
  position: absolute;
  inset: 0;
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.chat {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 82%;
}
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  flex: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(160deg, #3b78ff, var(--accent));
}
.msg-body {
  text-align: left;
  border-radius: 14px;
  padding: 9px 14px;
}
.msg-in .msg-body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-line);
  border-bottom-left-radius: 5px;
}
.msg-out .msg-body {
  background: linear-gradient(165deg, #3b78ff, var(--accent));
  border: 1px solid transparent;
  border-bottom-right-radius: 5px;
  box-shadow: 0 6px 16px -8px rgba(43, 107, 255, 0.7);
}
.msg-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 3px; }
.msg-name { color: var(--ink); font-weight: 700; font-size: 13px; }
.msg-time { color: var(--muted-2); font-size: 11px; }
.msg-text { color: var(--ink); font-size: 14px; line-height: 1.5; }
.msg-out .msg-text { color: #fff; }
.demo-link {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(88, 200, 255, 0.5);
  cursor: pointer;
}
.demo-link:hover { color: #9fe0ff; text-decoration-color: #9fe0ff; }
.demo-hint {
  align-self: flex-start;
  margin-top: 6px;
  margin-left: 42px;
  font-size: 13px; font-weight: 600;
  color: var(--accent-2);
  background: rgba(43, 107, 255, 0.12);
  border: 1px solid rgba(88, 200, 255, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  animation: hint-pulse 2.2s ease-in-out infinite;
}
@keyframes hint-pulse { 0%, 100% { opacity: 0.55; transform: translateX(0); } 50% { opacity: 1; transform: translateX(3px); } }

/* Picker overlay */
.picker-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  animation: overlay-in 0.18s ease;
}
.picker-overlay[hidden] { display: none; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.picker {
  width: 100%;
  max-width: 680px;
  border-radius: 16px;
  border: 1px solid rgba(88, 200, 255, 0.28);
  background: linear-gradient(180deg, #101a33, #0a1120);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(43, 107, 255, 0.18);
  overflow: hidden;
  animation: picker-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes picker-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.picker-bar {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.picker-title { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.picker-url {
  font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #dbe6ff;
  background: #0b1426;
  border: 1px solid #1e2c4d;
  border-radius: 10px;
  padding: 11px 14px;
  margin: 18px 18px 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.picker-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #25365c;
  background: linear-gradient(160deg, #13203f, #0c1428);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pcard-num {
  position: absolute; top: 4px; right: 12px;
  font: 800 56px/1 system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.pcard-chrome { display: block; padding: 10px 10px 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pcard-chrome .cdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; background: rgba(255, 255, 255, 0.25); }
.caddr { display: block; height: 7px; border-radius: 4px; margin-top: 9px; background: rgba(255, 255, 255, 0.12); }
.pcard-body { flex: 1; min-height: 56px; padding: 12px 12px 0; display: flex; flex-direction: column; gap: 7px; }
.pline { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); }
.pline.s { width: 60%; }
.pcard-title { padding: 10px 12px 12px; font-size: 12px; font-weight: 600; color: #aebcdb; }

.pcard-blue { border-color: rgba(43, 107, 255, 0.45); }
.pcard-blue .caddr { background: rgba(43, 107, 255, 0.32); }
.pcard-teal { border-color: rgba(40, 200, 200, 0.4); }
.pcard-teal .caddr { background: rgba(40, 200, 200, 0.32); }
.pcard-purple { border-color: rgba(150, 110, 255, 0.45); }
.pcard-purple .caddr { background: rgba(150, 110, 255, 0.32); }

.pcard:hover, .pcard.is-active {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 16px 36px -14px rgba(43, 107, 255, 0.7), 0 0 0 1px rgba(88, 200, 255, 0.4);
}
.pcard.is-selected {
  transform: translateY(-2px);
  border-color: #28c840;
  box-shadow: 0 0 0 1px rgba(40, 200, 64, 0.6), 0 16px 36px -14px rgba(40, 200, 64, 0.5);
}

/* ===== Payoff beat: the link visibly lands in the chosen window ===== */
/* Chosen window comes forward and glows; the others dim and recede. */
.pcard.is-chosen {
  z-index: 3;
  transform: translateY(-8px) scale(1.06);
  border-color: #28c840;
  box-shadow: 0 0 0 1px rgba(40, 200, 64, 0.7), 0 26px 54px -16px rgba(40, 200, 64, 0.55);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.2s ease;
}
.pcard.is-dim {
  opacity: 0.38;
  transform: scale(0.94);
  filter: saturate(0.55);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

/* Address line fills in with the loaded URL. */
.pcard.is-loading .caddr,
.pcard.is-loaded .caddr {
  height: 13px;
  margin-top: 8px;
  border-radius: 4px;
  background: #0b1426;
  box-shadow: inset 0 0 0 1px #28406e;
  transition: height 0.25s ease, background 0.25s ease;
}
.pcard.is-loaded .caddr {
  position: relative;
}
.pcard.is-loaded .caddr::after {
  content: "example.com/the-article";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #9fc1ff;
  white-space: nowrap;
}

/* Brief loading shimmer sweeps across the page area. */
.pcard .pcard-body { position: relative; overflow: hidden; }
.pcard.is-loading .pcard-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.16) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: pcard-shimmer 0.62s ease-in-out;
}
@keyframes pcard-shimmer { to { transform: translateX(110%); } }

/* Loaded page: a colored title bar line + a couple of content lines. */
.pcard.is-loaded .pcard-body .pline {
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.pcard.is-loaded .pcard-body .pline:first-child {
  height: 9px;
  width: 78%;
  background: linear-gradient(90deg, var(--accent-2), #6aa3ff);
}
.pcard.is-loaded .pcard-body .pline.s { width: 88%; }

.picker-legend { padding: 0 18px; text-align: center; font: 600 12px/1.5 ui-monospace, Menlo, monospace; color: #7d8db0; }
.picker-status { min-height: 20px; padding: 9px 18px 16px; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent-2); }

/* Confirmation toast */
.demo-toast {
  position: absolute;
  left: 50%; bottom: 18px;
  z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: rgba(12, 20, 40, 0.92);
  border: 1px solid rgba(40, 200, 64, 0.45);
  border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.demo-toast[hidden] { display: none; }
.demo-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.demo-toast .chk { color: #3ddc6a; font-weight: 800; }

/* Coachmark (escalated idle invitation) */
.demo-hint.is-coach {
  color: #fff;
  background: linear-gradient(180deg, #3b78ff, var(--accent));
  border-color: transparent;
  box-shadow: 0 10px 26px -6px rgba(43, 107, 255, 0.75);
  animation: coach-bounce 1.2s ease-in-out infinite;
}
@keyframes coach-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* CSS-drawn autoplay cursor (vector clip-path — no raster image) */
.demo-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 24px;
  margin: -2px 0 0 -3px;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  background: #fff;
  clip-path: polygon(0 0, 0 78%, 22% 60%, 41% 100%, 56% 92%, 37% 54%, 66% 54%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6));
  --cx: 60px; --cy: 60px;
  transform: translate(var(--cx), var(--cy)) scale(var(--cs, 1));
  transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.2, 1), opacity 0.25s ease;
  will-change: transform;
}
.demo-cursor.is-on { opacity: 1; }
.demo-cursor.is-press { --cs: 0.8; transition: transform 0.12s ease, opacity 0.25s ease; }

@media (max-width: 640px) {
  .demo-stage { min-height: 460px; }
  .picker-overlay { align-items: flex-start; padding: 12px; overflow-y: auto; }
  .picker-url { margin: 12px 12px 0; padding: 9px 12px; }
  .picker-cards { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .pcard-chrome { padding: 8px 10px 7px; }
  .pcard-body { min-height: 20px; padding: 8px 12px 0; }
  .pcard-num { font-size: 42px; }
  .pcard-title { padding: 8px 12px 10px; }
  .picker-legend { padding: 0 12px; }
  .picker-status { padding: 8px 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-hint, .demo-hint.is-coach, .picker-overlay, .picker { animation: none; }
  .pcard, .demo-toast { transition: none; }
  .pcard:hover, .pcard.is-active { transform: none; }
  .pcard.is-chosen, .pcard.is-dim { transform: none; transition: none; }
  .pcard.is-loading .pcard-body::after { animation: none; }
  .demo-cursor { display: none; }
}
