/* upgrade.css — add-on styles for the Deccan Toolbox grid, waitlist and free library.
   Loaded after style.css; uses the same tokens. Safe to delete if you roll back. */
.squiggle { position: relative; white-space: nowrap; }
.squiggle::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.18em; height: .32em;
  background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c30-7 60-7 96-3s66 4 98-2' fill='none' stroke='%230b9a6d' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); opacity: .9; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip { font: 700 14px/1 var(--font); padding: 10px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line-2); transition: all .2s var(--ease); }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .n { opacity: .7; font-weight: 600; margin-left: 5px; }
.tool-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--fg); --tc: var(--accent); }
.tool[hidden] { display: none; }
.tool .t-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool .t-num { font: 800 13px/1 ui-monospace, "JetBrains Mono", Menlo, monospace; letter-spacing: .08em; color: var(--tc); }
.tool .t-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); }
.tool .t-ico img { width: 30px; height: 30px; border-radius: 7px; }
.tool h3 { margin: 4px 0 0; font-size: 19px; }
.tool .t-for { font-size: 13px; color: var(--dim); font-weight: 600; }
.tool p { margin: 0; font-size: 15px; color: var(--muted); flex: 1; }
.tool .t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--tc); }
.badge.live { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); }
.badge.soon { background: color-mix(in srgb, var(--amber) 12%, transparent); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.tool.is-soon { border-style: dashed; }
button.tool-notify { all: unset; cursor: pointer; font: 700 14px/1 var(--font); color: var(--tc); }
button.tool-notify:hover { text-decoration: underline; }
button.tool-notify:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.signup input[type=email], .signup select { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: 12px; font: 500 15.5px/1.2 var(--font);
  background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); }
.signup input::placeholder { color: var(--dim); }
.signup input:focus, .signup select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signup .hp { position: absolute; left: -9999px; }
.form-msg { margin: 12px 0 0; font-size: 14.5px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: var(--red); }
.split { display: grid; gap: 28px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.lib-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.poster { aspect-ratio: 4/5; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end;
  font: 800 13px/1.2 var(--font); color: #fff; border: 1px solid rgba(255,255,255,.14); text-shadow: 0 1px 8px rgba(0,0,0,.5);
  background: linear-gradient(160deg, var(--p1), var(--p2)); position: relative; overflow: hidden; }
.poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 18%, rgba(255,255,255,.35), transparent 42%); }
.poster small { font: 700 11px/1 ui-monospace, Menlo, monospace; opacity: .85; letter-spacing: .08em; margin-bottom: 5px; position: relative; }
.poster span { position: relative; }
.style-card { display: flex; flex-direction: column; gap: 12px; }
.style-card[hidden] { display: none; }
.style-card .poster { aspect-ratio: 16/9; font-size: 18px; }
.style-card h3 { margin: 0; font-size: 18px; }
.style-card p { margin: 0; font-size: 15px; color: var(--muted); }
.prompt-box { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  font: 500 13.5px/1.6 ui-monospace, "JetBrains Mono", Menlo, monospace; color: var(--fg); white-space: pre-wrap; }
.locked .prompt-box { filter: blur(5px); user-select: none; pointer-events: none; max-height: 92px; overflow: hidden; }
.locked .copy-btn { display: none; }
.unlocked .lock-note { display: none; }
.lock-note { font-size: 14px; font-weight: 700; color: var(--amber); }
.gate { position: sticky; top: 84px; z-index: 5; margin-bottom: 26px; }
.unlocked .gate { display: none; }

.tool.is-soon { background: transparent; box-shadow: none; }
.tool .t-num { opacity: .9; }
.poster { border-color: rgba(17,24,39,.08); box-shadow: 0 14px 30px -18px rgba(16,24,40,.45); }
