/* The October 2026 look, from the Claude Design canvas "Asciimood site": an ASCII tide behind
   the page, a floating glass nav with a shining Pro pill, glass panels, numbered sections.
   Loaded after each page's own stylesheet, so it only restyles. */
:root { --bg: #0f1013; --bg-2: rgba(16, 16, 20, 0.72); --glass: rgba(18, 19, 23, 0.62); --glass-line: rgba(255, 255, 255, 0.09); --glow: rgba(240, 162, 74, 0.28); }
body { background: var(--bg); }

/* the tide (tide.js) and the veil that keeps text readable over it */
.tide { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; pointer-events: none; }
.tide-veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(15, 16, 19, 0.15), rgba(15, 16, 19, 0.7) 100%); }

/* brand: a light square, as on the canvas */
.brand-mark { background: #f3f0e9; color: #0f1013; border-color: transparent; }

/* ---------- the floating glass nav ---------- */
.nav-wrap, .lab-top { position: sticky; top: 0; z-index: 40; padding: 14px 16px 0; background: none !important; border: 0 !important; backdrop-filter: none !important; }
.nav, .lab-bar {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 9px 10px 9px 16px; height: auto;
  border: 1px solid var(--glow); border-radius: 14px; background: rgba(15, 16, 19, 0.38);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 0 22px -4px rgba(240, 162, 74, 0.22), 0 0 60px -20px rgba(240, 162, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 50px -24px #000;
}
.nav { width: min(1152px, 100%); margin-inline: auto; }
.nav > *, .lab-bar > * { position: relative; z-index: 1; }
.nav-ascii { position: absolute !important; top: 0; left: 0; z-index: 0 !important; pointer-events: none; white-space: pre; font: 10px/12px var(--mono); color: #b8bdc6; opacity: 0.13; animation: navdrift 90s linear infinite; }
@keyframes navdrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.nav-links { margin-left: auto; gap: 22px; }
.nav-tools { margin-left: 0; gap: 14px; }

.pro-pill {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px; white-space: nowrap;
  border: 1px solid rgba(240, 162, 74, 0.45); color: #fde7c4; font: 600 13px/1 var(--sans);
  background: linear-gradient(110deg, rgba(240, 162, 74, 0.10) 35%, rgba(255, 220, 160, 0.38) 50%, rgba(240, 162, 74, 0.10) 65%); background-size: 250% 100%;
  box-shadow: 0 0 16px -5px rgba(240, 162, 74, 0.5); animation: pillshine 3.8s ease-in-out infinite; transition: color .2s, box-shadow .2s;
}
.pro-pill .star { color: var(--accent); font-size: 11px; }
.pro-pill:hover { color: #fff; box-shadow: 0 0 22px -4px rgba(240, 162, 74, 0.65); }
.pro-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes pillshine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }

.btn-primary { transition: transform .15s ease, box-shadow .15s ease, background-color .2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(243, 240, 233, 0.45); }
.btn-cta { background: linear-gradient(135deg, #ffd27a 0%, #f0a24a 55%, #e8875a 100%); color: #1a1206; font-weight: 700; border: 1px solid rgba(255, 214, 150, 0.6); box-shadow: 0 0 20px -6px rgba(240, 162, 74, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-cta:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 0 28px -4px rgba(240, 162, 74, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

/* ---------- glass panels ---------- */
.tty { background: rgba(11, 11, 14, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 60px 120px -50px #000; }
.tty-bar { background: rgba(255, 255, 255, 0.03); }
.mood { border-color: rgba(240, 162, 74, 0.35); background: radial-gradient(ellipse at 50% 50%, rgba(240, 162, 74, 0.06), transparent 70%); }
.cmdbar { background: rgba(18, 19, 23, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, 0.12); }
.pill { background: rgba(18, 19, 23, 0.6); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.12); color: #c9c5bc; }
.pill-dot { background: #86efac; box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.55); animation: livepulse 2.4s ease-out infinite; }
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(134, 239, 172, 0); } }

/* ---------- home ---------- */
.hl { text-shadow: none; filter: drop-shadow(0 0 24px rgba(240, 162, 74, 0.3)); }
.hero::before { display: none; }
@media (min-width: 1040px) {
  .hero { width: min(1200px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 72px; }
  .hero-copy { width: auto; margin: 0; text-align: left; align-items: flex-start; }
  .hero h1 { font-size: clamp(46px, 5.4vw, 78px); line-height: 0.98; }
  .hero h1 br { display: inline; }
  .hero .lead { max-width: 520px; }
  .stagewrap { width: auto; margin: 0; }
  #hero-tty .mood { height: clamp(240px, 26vw, 360px); }
  /* the with / without video: one column, the title centred above the video at full width */
  .hero:has(.compare) { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 56px; }
  .hero:has(.compare) .hero-copy { text-align: center; align-items: center; margin-inline: auto; }
  .hero:has(.compare) h1 br { display: none; }
  .hero:has(.compare) .lead { max-width: 640px; }
}
.kicker { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.12em; }
.kicker .kn { color: var(--faint); }

.how { align-items: stretch; }
.how-steps { padding: 8px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 4px; align-self: start; }
.how-steps .rail { display: none; }
.how-steps li { min-height: 0 !important; padding: 14px 16px; border-radius: 11px; border: 1px solid transparent; opacity: 1; cursor: pointer; align-items: start; transition: background-color .25s, border-color .25s; }
.how-steps li:hover { background: rgba(255, 255, 255, 0.03); }
.how-steps li.on { background: color-mix(in oklab, var(--c) 8%, transparent); border-color: color-mix(in oklab, var(--c) 35%, transparent); }
.how-steps li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.how-ic { width: 30px; height: 30px; border-radius: 8px; border: 0; background: color-mix(in oklab, var(--c) 12%, transparent); }
.how-steps li.on .how-ic { box-shadow: none; }
.how-steps h3 { font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.how-steps p { margin-top: 2px; font-size: 14px; }
.how-steps .how-def { margin-top: 4px; font-size: 12px; }
.how-stage .tty { position: sticky; top: 110px; }
.never, .mixer, .install, .lab-card, .faq-box, .creators { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.never li { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--glass-line); font-size: 13.5px; color: #c9c5bc; }
.never .nv-ic { width: auto; height: auto; background: none; border: 0; }
.mood-card { background: rgba(11, 11, 14, 0.78); backdrop-filter: blur(14px); border-color: var(--glass-line); transition: transform .2s ease, border-color .2s ease; }
.mood-card:hover { transform: translateY(-3px); border-color: rgba(240, 162, 74, 0.45); }
.mood-card[aria-checked="true"] { box-shadow: 0 0 0 1px rgba(240, 162, 74, 0.6), 0 0 26px -8px rgba(240, 162, 74, 0.55); }

/* install and the questions side by side */
.inst-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.inst-grid .install { margin-top: 0; border-radius: 16px; }
.faq-box { border-radius: 16px; padding: 6px 22px; }
.faq-box .faq { margin-top: 0; border-top: 0; }
.faq-box .faq details:last-child { border-bottom: 0; }
.faq-box .faq summary { font-size: 16px; padding: 16px 32px 16px 0; }
@media (max-width: 900px) { .inst-grid { grid-template-columns: 1fr; } }

/* the closing band */
.closer { width: min(1160px, 100% - 32px); margin: 96px auto 0; position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--glow); background: rgba(18, 19, 23, 0.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 0 40px -12px rgba(240, 162, 74, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06); padding: 56px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.closer::before { content: ""; position: absolute; left: 50%; top: -40%; width: 70%; height: 90%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 162, 74, 0.2), transparent); filter: blur(30px); pointer-events: none; }
.closer h2 { position: relative; margin: 0; font-size: clamp(32px, 4vw, 44px); }
.closer h2 span { color: var(--accent); }
.closer .cmdbar { position: relative; width: min(580px, 100%); text-align: left; }
.closer > a { position: relative; color: #c9c5bc; text-decoration: none; font-size: 14px; }
.closer > a:hover { color: var(--ink); }
.foot { background: none; }

/* ---------- setup ---------- */
body.lab .lab-top { height: auto; padding: 14px 16px 0; }
.lab-bar { flex: 1; padding: 9px 22px 9px 14px; }
.lab-app { gap: 16px; padding: 16px; background: none; }
.lab-lib, .lab-setup { border-radius: 16px; border: 1px solid var(--glass-line) !important; background: rgba(16, 16, 20, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.lab-stage { padding: 0; background: none; }
.tile { transition: transform .15s ease, border-color .15s ease; }
.tile:hover { transform: translateY(-2px); border-color: rgba(240, 162, 74, 0.45); }
.tile.used { box-shadow: 0 0 18px -6px rgba(240, 162, 74, 0.55); }
.sim { padding: 6px; border-radius: 14px; background: rgba(16, 16, 20, 0.72); backdrop-filter: blur(18px); border: 1px solid var(--glass-line); }
.sim button { border-color: transparent; background: none; }
.sim button.on { border-color: color-mix(in oklab, var(--c) 55%, transparent); background: color-mix(in oklab, var(--c) 10%, transparent); box-shadow: 0 0 16px -6px var(--c); }
.slots li.active, .slots li.on { box-shadow: 0 0 18px -8px rgba(240, 162, 74, 0.6); }

/* ---------- the Pro dialog ---------- */
.pro-dialog { max-width: 480px; padding: 26px 26px 22px; border-radius: 18px; border: 1px solid rgba(240, 162, 74, 0.3); background: #0e0f12; overflow: hidden; box-shadow: 0 0 40px -10px rgba(240, 162, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.pro-dialog > * { position: relative; }
.pro-band { position: absolute !important; top: 0; left: 0; right: 0; height: 130px; margin: 0; overflow: hidden; pointer-events: none; font: 10px/12px var(--mono); color: var(--accent); opacity: 0.22; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.pro-glow { position: absolute !important; top: -120px; left: 50%; width: 420px; height: 240px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 162, 74, 0.22), transparent); filter: blur(20px); pointer-events: none; }
.pro-tag .pro-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(240, 162, 74, 0.5); color: #fde7c4; font: 700 11px/1 var(--mono); letter-spacing: 0.12em; background: linear-gradient(110deg, rgba(240, 162, 74, 0.12) 35%, rgba(255, 220, 160, 0.4) 50%, rgba(240, 162, 74, 0.12) 65%); background-size: 250% 100%; animation: pillshine 3.8s ease-in-out infinite; }
.pro-dialog h2 { font-size: 28px; }
.pro-price b { font-size: 40px; letter-spacing: -0.035em; }
.pro-list { list-style: none; padding: 0; gap: 8px; color: #c9c5bc; }
.pro-list li { display: flex; align-items: center; gap: 10px; }
.pro-list li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(240, 162, 74, 0.14); color: var(--accent); font-size: 11px; }
#pro-buy { box-shadow: 0 8px 24px -12px rgba(240, 162, 74, 0.6); }
#pro-buy:hover { box-shadow: 0 10px 30px -10px rgba(240, 162, 74, 0.7); }
.pro-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; top: 12px; right: 12px; z-index: 2; }
.pro-x:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

@media (prefers-reduced-motion: reduce) { .nav-ascii, .pro-pill, .pill-dot, .pro-tag .pro-badge { animation: none !important; } }
@media (max-width: 760px) { .nav-tools .lang, .lab-links .home-link { display: none; } }

/* the orange edge glow around the whole window, like Claude in Chrome when it takes the wheel */
html::after {
  content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(240, 162, 74, 0.28), inset 0 0 14px 0 rgba(240, 162, 74, 0.16);
  animation: edgeglow 5s ease-in-out infinite;
}
@keyframes edgeglow { 50% { box-shadow: inset 0 0 0 1px rgba(240, 162, 74, 0.4), inset 0 0 18px 1px rgba(240, 162, 74, 0.22); } }
@media (prefers-reduced-motion: reduce) { html::after { animation: none; } }
