/* Bardstar — editorial skin for every page besides the hub.
   Loaded after site.css / page CSS and cl.css (which provides the tokens, nav-over-sky, footer and
   pricing). Pages get: a night-sky hero with serif white headline that fades into white, gradient-ink
   section headings, blue-grey card surfaces and the soft footer. Documents (privacy, terms, support)
   get a shorter sky band behind their title. */

.skin .section-alt { background: transparent; backdrop-filter: none; }
.skin .hero-glow, .skin .stars { display: none; }

/* ---------------------------------------------------------------- sky hero */
.skin .hero { position: relative; isolation: isolate; color: #fff; padding: 132px 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.skin .hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(56vw 56vw at -6% 18%, rgba(106, 76, 255, .45), transparent 60%),
              radial-gradient(48vw 48vw at 104% -4%, rgba(47, 123, 255, .5), transparent 60%),
              radial-gradient(40vw 26vw at 50% 78%, rgba(255, 176, 122, .22), transparent 70%),
              linear-gradient(180deg, #070a1c 0%, #111a45 40%, #3a4f9e 74%, #9fb2e6 92%, var(--cl-bg) 100%); }
.skin .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3; mix-blend-mode: overlay; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.2px); background-size: 3px 3px; }
.skin .hero .display { font-family: var(--cl-serif); font-weight: 500; font-size: clamp(50px, 6.6vw, 84px); line-height: 1; letter-spacing: -.02em; color: #fff; text-shadow: 0 20px 40px rgba(0, 0, 20, .25); }
.skin .hero .grad-hero, :root[data-theme="dark"] .skin .hero .grad-hero { font-style: normal; background-image: linear-gradient(100deg, #fff 20%, #c9d4ff 60%, #ffd9bd); padding-right: .06em; }
.skin .hero .lead { color: rgba(255, 255, 255, .86); font-weight: 500; }
.skin .hero .eyebrow { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); box-shadow: 0 -.5px 0 rgba(255,255,255,.5) inset; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.skin .hero .dl-caption, .skin .hero .dl-caption span { color: rgba(255, 255, 255, .66); }
.skin .hero .dl-caption svg { color: #7ff0a8; }
.skin .hero .hero-copy > * { animation: cl-up .7s var(--cl-out) both; }
.skin .hero .hero-copy > :nth-child(2) { animation-delay: .08s; }
.skin .hero .hero-copy > :nth-child(3) { animation-delay: .16s; }
.skin .hero .hero-copy > :nth-child(n+4) { animation-delay: .24s; }
.skin .hero .hero-split > :last-child { animation: cl-pop 1s var(--cl-out) .2s both; }
.intro-played .skin .hero .hero-copy > *, .intro-played .skin .hero .hero-split > :last-child { animation-delay: 1s; }
/* waitlist form on the sky */
.skin .hero .waitlist input[type="email"] { background: rgba(255, 255, 255, .96); color: #15151c; }
.skin .hero .wl-note, .skin .hero .wl-fine, .skin .hero .waitlist-wrap small, .skin .hero .muted, .skin .hero .faint { color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------- sections */
.skin .kicker { color: var(--cl-muted); font-weight: 600; letter-spacing: .15em; }
.skin .h2, .skin .section-head .h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 550; letter-spacing: -.035em; line-height: 1.1;
  background: linear-gradient(90deg, var(--cl-ink), var(--cl-ink-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.skin .lead { color: var(--cl-muted); }
.skin .card { border-radius: 28px; border: 0; background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; }
.skin .card:hover { box-shadow: 0 0 0 1px var(--cl-line) inset, 0 24px 50px -28px rgba(30, 40, 90, .3); }
.skin .window, .skin .demo-win { border-radius: 14px; box-shadow: 0 50px 100px -30px rgba(10, 20, 60, .55), 0 0 0 1px rgba(255,255,255,.18); }

/* FAQ like the hub */
.skin .faq { border-top: 0; }
.skin .faq details { border-bottom: 1px solid var(--cl-line); }
.skin .faq summary { font-size: clamp(18px, 2vw, 23px); font-weight: 500; letter-spacing: -.02em; padding-top: 22px; padding-bottom: 22px; }
.skin .faq .answer { color: var(--cl-muted); }

/* big closing CTA card */
.skin .final-cta { border-radius: 32px; background: radial-gradient(121% 125% at 7% 100%, #3d24d8 0%, #6e5bff 100%); box-shadow: 0 .7px 0 rgba(210, 200, 255, .9) inset, 0 40px 80px -40px rgba(80, 60, 240, .6); }

/* ---------------------------------------------------------------- documents: support, privacy, terms */
.skin-doc main { position: relative; isolation: isolate; }
.skin-doc main::before { content: ""; position: absolute; left: 0; right: 0; top: -64px; height: 400px; z-index: -1;
  background: radial-gradient(50vw 40vw at 0% 20%, rgba(106, 76, 255, .45), transparent 60%), radial-gradient(40vw 40vw at 100% 0%, rgba(47, 123, 255, .45), transparent 60%),
              linear-gradient(180deg, #070a1c 0%, #111a45 45%, #3a4f9e 78%, var(--cl-bg) 100%); }
.skin-doc .prose { padding-top: 128px; }
.skin-doc .prose h1 { font-family: var(--cl-serif); font-weight: 500; font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -.02em; color: #fff; }
.skin-doc .prose .updated { color: rgba(255, 255, 255, .72); margin-bottom: 120px; }
.skin-doc .prose h2 { font-weight: 550; letter-spacing: -.02em; color: var(--cl-ink); }
.skin-doc .prose p, .skin-doc .prose li { color: var(--cl-ink-2); }
.skin-doc .prose .summary, .skin-doc .support-card, .skin-doc .legal-banner, .skin-doc .toc { border-radius: 22px; border: 0; background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; }

/* 404: full sky */
.skin-404 main.notfound { position: relative; isolation: isolate; color: #fff; margin-top: -64px; padding-top: 64px; min-height: 100vh; }
.skin-404 main.notfound::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(56vw 56vw at -6% 18%, rgba(106, 76, 255, .45), transparent 60%), radial-gradient(48vw 48vw at 104% -4%, rgba(47, 123, 255, .5), transparent 60%), linear-gradient(180deg, #070a1c, #111a45 55%, #3a4f9e); }
.skin-404 main.notfound .h2 { font-family: var(--cl-serif); font-weight: 500; font-size: clamp(38px, 5vw, 60px); color: #fff; }
.skin-404 main.notfound .lead { color: rgba(255, 255, 255, .8); }
.skin-404 main.notfound .grad-text { font-family: var(--cl-serif); font-style: normal; background-image: linear-gradient(100deg, #fff 20%, #c9d4ff 60%, #ffd9bd); }
.skin-404 .nav { margin-bottom: 0; }

@media (max-width: 960px) { .skin .hero { padding-top: 112px; } }

/* ---------------------------------------------------------------- checkout */
.skin-checkout .co { max-width: 620px; }
.co-card { display: grid; gap: 12px; padding: clamp(22px, 4vw, 34px); border-radius: 28px; background: var(--cl-bg); box-shadow: 0 0 0 1px var(--cl-line), 0 40px 80px -40px rgba(20, 30, 80, .35); }
.co-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 10px; padding: 0; border: 0; }
@media (max-width: 520px) { .co-plans { grid-template-columns: minmax(0, 1fr); } }
.co-plans legend { font-weight: 600; margin-bottom: 10px; color: var(--cl-ink); }
.co-plan { position: relative; cursor: pointer; }
.co-plan input { position: absolute; opacity: 0; }
.co-plan-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border-radius: 18px; background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; transition: box-shadow .2s, transform .2s; }
.co-plan input:checked + .co-plan-body { box-shadow: 0 0 0 2px #6e5bff inset, 0 14px 30px -18px rgba(80, 60, 240, .6); }
.co-plan input:focus-visible + .co-plan-body { outline: 2.5px solid #497ee9; outline-offset: 3px; }
.co-plan b { font-size: 15px; color: var(--cl-ink); }
.co-plan em { font-style: normal; font-size: 12px; color: #2cb463; margin-left: 4px; }
.co-price { font-size: 30px; font-weight: 650; letter-spacing: -.03em; color: var(--cl-ink); }
.co-price small { font-size: 14px; font-weight: 500; color: var(--cl-muted); margin-left: 4px; }
.co-plan-body > small { font-size: 13px; color: var(--cl-muted); }
.co-label { font-weight: 600; color: var(--cl-ink); }
.co-input { height: 52px; padding: 0 16px; border-radius: 14px; border: 0; font-size: 17px; color: var(--cl-ink); background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; }
.co-input:focus { outline: 2.5px solid #6e5bff; outline-offset: 1px; }
.co-help, .co-fine, .co-small { font-size: 13.5px; color: var(--cl-muted); }
.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--cl-ink-2); }
.co-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #6e5bff; }
.co-error { color: #e5484d; font-weight: 600; font-size: 14.5px; }
.co-go { border: 0; font-size: 16.5px; height: 54px; cursor: pointer; background: linear-gradient(180deg, #6e5bff, #3d24d8); box-shadow: 0 .7px 0 rgba(210, 200, 255, .9) inset, 0 14px 30px -12px rgba(80, 60, 240, .7); }
.co-go:disabled { opacity: .7; cursor: progress; }
.co-fine { display: flex; align-items: center; justify-content: center; gap: 6px; }
.co-fine svg { width: 15px; height: 15px; }
.skin-doc .co-perks { list-style: none; padding: 0; margin: 28px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
@media (max-width: 520px) { .skin-doc .co-perks { grid-template-columns: minmax(0, 1fr); } }
.skin-doc .co-perks li { display: flex; gap: 8px; align-items: center; color: var(--cl-ink-2); font-size: 15.5px; }
.co-perks svg { width: 18px; height: 18px; flex: none; color: #2cb463; }
.skin-checkout .prose .updated { margin-bottom: 100px; }

/* ---------------------------------------------------------------- changelog */
.cg { position: relative; display: grid; gap: 22px; padding-left: 26px; }
.cg::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #6a4cff, #2f7bff 60%, var(--cl-line)); }
.cg-rel { position: relative; padding: 22px 24px; border-radius: 22px; background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; }
.cg-rel::before { content: ""; position: absolute; left: -26px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--cl-bg); box-shadow: 0 0 0 3px #6a4cff; }
.cg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.cg-v { font-weight: 700; font-size: 18px; color: var(--cl-ink); }
.cg-meta time { font-size: 14px; color: var(--cl-muted); }
.cg-tag { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(180deg, #6e5bff, #3d24d8); }
.skin-doc .cg ul { margin: 0; }
.cg-foot { margin-top: 28px; }

/* checkout: steps, confirm dialog, 6-digit code */
.co-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; }
.skin-doc .co-steps li { display: flex; align-items: center; gap: 8px; flex: 1; padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--cl-muted); background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; transition: color .2s, box-shadow .2s; }
.co-steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; color: var(--cl-muted); background: var(--cl-bg); box-shadow: 0 0 0 1px var(--cl-line); flex: none; }
.skin-doc .co-steps li.on { color: var(--cl-ink); box-shadow: 0 0 0 2px #6e5bff inset; }
.co-steps li.on span { color: #fff; background: linear-gradient(180deg, #6e5bff, #3d24d8); box-shadow: none; }
.skin-doc .co-steps li.done { color: var(--cl-ink-2); }
.co-steps li.done span { color: #fff; background: #2cb463; box-shadow: none; }
@media (max-width: 520px) { .skin-doc .co-steps li { font-size: 12px; padding: 8px; gap: 6px; } }

.co-confirm { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 24, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.co-confirm.in { opacity: 1; }
.co-confirm-card { width: min(440px, 100%); padding: 28px; border-radius: 26px; color: var(--cl-ink); background: var(--cl-bg); box-shadow: 0 40px 100px -30px rgba(10, 20, 60, .6); transform: translateY(12px) scale(.97); transition: transform .3s var(--cl-out); }
.co-confirm.in .co-confirm-card { transform: none; }
.co-confirm-card h2 { font-family: var(--cl-serif); font-weight: 500; font-size: 30px; line-height: 1.1; margin-bottom: 14px; }
.co-confirm-email { padding: 14px 16px; border-radius: 14px; font-size: 18px; font-weight: 650; word-break: break-all; color: var(--cl-ink); background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; margin-bottom: 12px; }
.co-confirm-card > p:not(.co-confirm-email) { font-size: 14.5px; color: var(--cl-ink-2); line-height: 1.5; }
.co-confirm-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 20px; }
.co-confirm-actions .cl-plan-btn { border: 0; cursor: pointer; font-size: 15.5px; background: linear-gradient(180deg, #6e5bff, #3d24d8); }
.co-btn-ghost { border: 0; border-radius: 14px; font-weight: 600; font-size: 15px; color: var(--cl-ink); background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; cursor: pointer; }

.co-verify { text-align: center; }
.co-verify-head h2 { font-family: var(--cl-serif); font-weight: 500; font-size: 32px; color: var(--cl-ink); margin: 10px 0 6px; }
.skin-doc .co-verify-head p { color: var(--cl-ink-2); font-size: 15.5px; }
.co-mail-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 18px; color: #fff; background: linear-gradient(180deg, #6e5bff, #3d24d8); box-shadow: 0 14px 30px -12px rgba(80, 60, 240, .7); }
.co-mail-icon svg { width: 26px; height: 26px; }
.co-verify.ok .co-mail-icon { background: #2cb463; box-shadow: 0 14px 30px -12px rgba(44, 180, 99, .7); }
.co-otp { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 18px 0 6px; padding: 0; border: 0; }
.co-otp input { width: 52px; height: 64px; padding: 0; border: 0; border-radius: 14px; text-align: center; font: 700 28px/1 var(--font); color: var(--cl-ink); background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; caret-color: #6e5bff; transition: box-shadow .15s, transform .15s; }
.co-otp input:focus { outline: 0; box-shadow: 0 0 0 2px #6e5bff inset, 0 8px 20px -10px rgba(80, 60, 240, .6); transform: translateY(-1px); }
.co-otp input.bad { box-shadow: 0 0 0 2px #e5484d inset; }
.co-verify.ok .co-otp input { box-shadow: 0 0 0 2px #2cb463 inset; }
.co-otp-dash { width: 10px; height: 2px; border-radius: 2px; background: var(--cl-line); }
@media (max-width: 420px) { .co-otp { gap: 5px; } .co-otp input { width: 42px; height: 54px; font-size: 24px; } .co-otp-dash { width: 6px; } }
.co-verify.shake .co-otp { animation: co-shake .4s; }
@keyframes co-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.co-verify-links { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--cl-muted); }
.co-link { border: 0; padding: 4px 2px; font: inherit; font-weight: 600; color: #4f3be0; background: transparent; cursor: pointer; }
.co-link:disabled { color: var(--cl-muted); cursor: default; font-weight: 500; }
:root[data-theme="dark"] .co-link:not(:disabled) { color: #a99bff; }
.co-card[hidden], .co-confirm[hidden] { display: none; }
.co-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 4px; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--cl-ink-2); background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; }
.co-dots { display: inline-flex; gap: 4px; }
.co-dots i { width: 7px; height: 7px; border-radius: 50%; background: #6e5bff; animation: co-dot 1.2s ease-in-out infinite; }
.co-dots i:nth-child(2) { animation-delay: .15s; } .co-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes co-dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.co-verify.ok .co-dots i { background: #2cb463; }
.co-open-mail { text-decoration: none; display: flex; align-items: center; justify-content: center; }
.co-verify .co-go { width: 100%; margin-top: 10px; }
.co-verify[hidden] { display: none; }
.co-verify [hidden], .co-card [hidden] { display: none !important; }

/* ---------------------------------------------------------------- welcome / manage (Worker pages) and /email/verified */
.skin-app .prose, .skin-verified .prose { max-width: 620px; }
.wp-card, .vf { display: grid; gap: 14px; padding: clamp(22px, 4vw, 34px); border-radius: 28px; background: var(--cl-bg); box-shadow: 0 0 0 1px var(--cl-line), 0 40px 80px -40px rgba(20, 30, 80, .35); }
.skin-doc .wp-card p, .skin-doc .wp-card li { color: var(--cl-ink-2); }
.wp-card .lead { font-size: 18px; }
.wp-card .key { padding: 18px; border-radius: 16px; text-align: center; font: 700 clamp(17px, 4.4vw, 24px)/1.3 var(--mono); letter-spacing: .05em; color: var(--cl-ink); user-select: all; word-break: break-all;
  background: linear-gradient(135deg, rgba(110, 91, 255, .12), rgba(255, 176, 122, .12)); box-shadow: 0 0 0 1.5px rgba(110, 91, 255, .5) inset; }
.key-actions, .wp-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.key-actions .co-btn-ghost { height: 42px; padding: 0 16px; }
.wp-card .actions .btn, .wp-card form .btn { height: 46px; padding: 0 20px; border: 0; border-radius: 14px; font-weight: 600; color: #fff; text-decoration: none; background: linear-gradient(180deg, #6e5bff, #3d24d8); cursor: pointer; }
.wp-card .actions .btn:last-child { color: #fff; background: linear-gradient(180deg, #2a2a30, #000); }
.wp-card form { display: grid; gap: 10px; }
.wp-card label { font-weight: 600; color: var(--cl-ink); }
.wp-card input { height: 50px; padding: 0 16px; border: 0; border-radius: 14px; font: 600 16px var(--mono); text-transform: uppercase; color: var(--cl-ink); background: var(--cl-card); box-shadow: 0 0 0 1px var(--cl-line) inset; }
.wp-card input:focus { outline: 2.5px solid #6e5bff; outline-offset: 1px; }
.wp-card .error { color: #e5484d; font-weight: 600; }
.wp-card .small { font-size: 14px; color: var(--cl-muted); }
.skin-app .updated { margin-bottom: 110px; }

.vf { text-align: center; justify-items: center; }
.vf h2 { font-family: var(--cl-serif); font-weight: 500; font-size: 32px; color: var(--cl-ink); }
.skin-doc .vf p { color: var(--cl-ink-2); }
.skin-doc .vf p.co-error { color: #e5484d; }
[data-theme="dark"] .skin-doc .vf p.co-error, [data-theme="dark"] .co-error { color: #ff7b72; }
.vf-mark svg { width: 76px; height: 76px; }
.vf-mark circle { fill: none; stroke: var(--cl-line); stroke-width: 3; }
.vf-mark path { fill: none; stroke: #2cb463; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.vf.ok .vf-mark circle { stroke: #2cb463; animation: vf-ring .5s var(--cl-out) both; }
.vf.ok .vf-mark path { animation: vf-tick .45s var(--cl-out) .35s forwards; }
.vf.bad .vf-mark circle { stroke: #e5484d; }
.vf.bad .vf-mark path { stroke: #e5484d; stroke-dashoffset: 0; }
@keyframes vf-ring { from { transform: scale(.6); opacity: 0; transform-origin: center; } to { transform: none; opacity: 1; } }
@keyframes vf-tick { to { stroke-dashoffset: 0; } }
.vf-next { display: grid; gap: 10px; width: 100%; }
.vf-tip { padding: 14px 16px; border-radius: 14px; background: rgba(44, 180, 99, .1); box-shadow: 0 0 0 1px rgba(44, 180, 99, .3) inset; }
.skin-doc .vf-tip b { color: var(--cl-ink); }
.vf-or { font-size: 14px; }
.vf .co-go { width: 100%; }
.skin-verified .updated { margin-bottom: 110px; }
.vf [hidden] { display: none !important; }

/* spam warning */
.co-spam { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; text-align: left; font-size: 14.5px; line-height: 1.45; color: var(--cl-ink-2); background: rgba(229, 72, 77, .08); box-shadow: 0 0 0 1px rgba(229, 72, 77, .35) inset; }
.co-spam svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #e5484d; }
.co-spam b { color: var(--cl-ink); }
.co-spam .spam { color: #e5484d; font-weight: 800; letter-spacing: .03em; }
.co-confirm-card .co-spam { margin-top: 12px; }
.skin-doc .co-steps li.done { box-shadow: 0 0 0 1px rgba(44, 180, 99, .45) inset; color: var(--cl-ink); }
