/* Chat-first direction: the Sweet AI console is the hero, and the rest of the page reads as Sweet's answer.
   Loads after site.css (shared with the other pages) and only adds or overrides. */

@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ring-grad: linear-gradient(rgba(255, 45, 158, 0.55), rgba(255, 45, 158, 0.55));
}
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
kbd { font: 600 13px/1 var(--mono); padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(15, 12, 26, 0.7); color: var(--cream); }
.on { color: var(--pink); font-style: normal; }

/* ---------- nav ---------- */
.spark-ic { width: 15px; height: 15px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(255, 45, 158, 0.6)); }
.nav-ask { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 340px; height: 42px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, var(--ring-grad) border-box; color: var(--muted); font: 500 16px/1 var(--body); text-align: left; opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.nav-ask svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-ask .na-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-ask kbd { font-size: 11px; padding: 4px 7px; }
.nav.show-ask .nav-ask { opacity: 1; transform: none; pointer-events: auto; }
.nav-ask + .nav-cta { margin-left: 0; }
.nav-ask:hover { color: var(--cream); }

/* ---------- hero ---------- */
/* Backgrounds: one rhythm for the whole page.
   Top: chat + headline on ink with the original hero's violet + pink glow, toned down. Then the original alternation:
   play band (darkest) → ink → ink-2 → ink → ink-2, and the closing band + footer stay on ink-2 (one soft glow, no dark stripe). */
.ai-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); }
.ai-hero + .intro { margin-top: -1px; }
.ah-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(55% 60% at 50% 0%, rgba(154, 123, 255, 0.17), transparent 70%),
  radial-gradient(30% 40% at 92% 70%, rgba(154, 123, 255, 0.06), transparent 70%); }
.ah-wrap { position: relative; display: flex; flex-direction: column; padding-block: clamp(40px, 9vh, 104px) 0; }
.ah-wrap .console, .ah-wrap .ah-under { width: 100%; max-width: 1120px; margin-inline: auto; }

/* Headline band under the chat (the old hero copy) */
.intro { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(42% 70% at 8% 100%, rgba(255, 45, 158, 0.09), transparent 70%); }
.intro-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 0 96px; }
.intro-line { position: relative; width: 1px; height: 76px; margin: 30px 0 34px; background: linear-gradient(180deg, rgba(255, 45, 158, 0), rgba(255, 45, 158, 0.55)); }
.intro-line::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--pink); }
.intro h2 { font-size: clamp(40px, 4.2vw, 62px); font-weight: 800; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.01em; }
.intro h2 em { display: block; }
.intro .lede { color: var(--muted); font-size: clamp(18px, 1.55vw, 21px); line-height: 2.05; max-width: 50em; margin-top: 22px; text-wrap: balance; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 1px 12px 1px 9px; margin: 0 1px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--cream); font-weight: 500; line-height: 1.65; white-space: nowrap; vertical-align: 1px; }
.pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--pink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.intro .nb { white-space: nowrap; }
.intro .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.intro-foot { color: var(--dim); font-size: 14px; margin-top: 16px; }

/* The console: gradient ring, dark glass inside */
.console { position: relative; border-radius: 34px; padding: 2px; background: var(--ring-grad); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55); }
@keyframes ringSpin { to { --ring: 360deg; } }
.cs-in { position: relative; border-radius: 32px; background: linear-gradient(180deg, rgba(31, 24, 58, 0.97), rgba(20, 15, 38, 0.98)); padding: 30px 38px 24px; }
.cs-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cs-title { font: 500 13px/1 var(--mono); color: var(--dim); letter-spacing: 0.04em; }
.cs-status { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 17px; }
.cs-status i { width: 11px; height: 11px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.cs-status[data-s="busy"] i { background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: blink 0.8s ease-in-out infinite; }
.cs-status[data-s="busy"] { color: var(--gold); }
.cs-status[data-s="live"] { color: var(--teal); }
.cs-status[data-s="typing"] i { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
@keyframes blink { 50% { opacity: 0.35; } }
.cs-h { font-size: clamp(44px, 5vw, 76px); font-weight: 800; text-transform: uppercase; line-height: 0.95; margin-top: 22px; letter-spacing: 0.01em; }
.cs-sub { color: var(--muted); font-size: 16px; margin-top: 6px; }

.cs-box { position: relative; margin-top: 16px; border-radius: 22px; border: 1px solid var(--line-2); background: #0c0917; padding: 22px 26px 18px; min-height: 168px; display: flex; flex-direction: column; transition: border-color 0.2s ease, box-shadow 0.2s ease; cursor: text; }
.cs-box:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 45, 158, 0.14); }
.cs-box textarea { position: relative; z-index: 2; width: 100%; resize: none; border: 0; outline: none; background: transparent; color: var(--cream); font: 400 clamp(21px, 1.9vw, 28px)/1.35 var(--body); padding: 0; min-height: 2.7em; caret-color: var(--pink); }
.cs-ghost { position: absolute; z-index: 1; left: 24px; right: 24px; top: 20px; font: 400 clamp(21px, 1.9vw, 28px)/1.35 var(--body); color: #8f86ad; pointer-events: none; }
.cs-via { display: inline-block; vertical-align: 5px; margin-right: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.cs-box textarea::placeholder { color: #6f6790; }
.cs-cursor { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--pink); animation: blink 1s steps(1) infinite; }
.cs-typed.sel { background: rgba(255, 45, 158, 0.28); color: var(--cream); }
.console.user-typing .cs-ghost, .console[data-state="run"] .cs-ghost { display: none; }
.cs-reply { position: relative; z-index: 2; margin-top: auto; padding-top: 14px; display: none; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 42px; opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.cs-reply.show { display: flex; opacity: 1; transform: none; }
.cs-who { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); margin-right: 2px; }
.cs-mods { display: contents; }
.mod { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 999px; border: 1px solid rgba(79, 227, 193, 0.4); background: rgba(79, 227, 193, 0.08); color: #bff5e7; font: 500 13.5px/1 var(--body); animation: modIn 0.28s ease both; }
.mod svg { width: 13px; height: 13px; fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mod.ai { color: #d6c9ff; border-color: rgba(154, 123, 255, 0.6); background: rgba(154, 123, 255, 0.16); font-weight: 600; }
.mod.ai svg { stroke: var(--violet); stroke-width: 1.9; width: 15px; height: 15px; }
.mod.will { border-style: dashed; color: var(--muted); background: transparent; border-color: rgba(179, 170, 203, 0.35); }
.mod.will svg { stroke: var(--dim); }
.mod.more { border-style: solid; padding: 6px 10px; }
.cs-pub:empty { display: none; }
@keyframes modIn { from { opacity: 0; transform: translateY(5px) scale(0.96); } }
.cs-pub { flex-basis: 100%; font: 500 13px/1.4 var(--mono); color: var(--muted); opacity: 0; transition: opacity 0.3s ease; }
.cs-pub.show { opacity: 1; }
.cs-pub b { color: var(--teal); font-weight: 600; }

.cs-bar { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.cs-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.tg { display: inline-flex; align-items: center; gap: 9px; padding: 13px 19px 13px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(15, 12, 26, 0.5); color: var(--cream); font: 600 19px/1 var(--display); letter-spacing: 0.03em; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.tg svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.15s ease; }
.tg:hover { border-color: var(--muted); transform: translateY(-1px); }
.tg[aria-pressed="true"] { border-color: var(--pink); background: rgba(255, 45, 158, 0.12); }
.tg[aria-pressed="true"] svg { stroke: var(--pink); }
.tg.flash { animation: tgFlash 0.6s ease; }
@keyframes tgFlash { 30% { transform: scale(1.05); } }
.tg { position: relative; }
.tip { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 5; width: max-content; max-width: 260px; transform: translate(-50%, 4px); padding: 10px 13px; border-radius: 12px; background: #f5f1ea; color: #15111f; font: 500 13.5px/1.4 var(--body); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; }
.tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #f5f1ea; }
.tg:hover .tip, .tg:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.15s; }
@media (hover: none) { .tip { display: none; } }
.cs-incl { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 14.5px; }
.cs-incl li { display: inline-flex; align-items: center; gap: 7px; }
.cs-incl li:not(.k)::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fe3c1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.cs-incl .k { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-right: 2px; }
.console[data-state="run"] .cs-incl { display: none; }
.build-it { margin-left: auto; display: inline-flex; align-items: center; gap: 18px; padding: 20px 38px 20px 44px; border: 0; border-radius: 999px; background: var(--pink); color: var(--ink); font: 800 clamp(26px, 2.4vw, 36px)/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(255, 45, 158, 0.28); transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease; }
.build-it svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.build-it:hover { background: #ff54b0; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 45, 158, 0.38); }
.build-it:hover svg { transform: translateX(4px); }
.build-it:active { transform: translateY(1px) scale(0.98); }
.build-it[disabled] { opacity: 0.55; cursor: default; transform: none; }
.cs-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.console.nudge .cs-box { animation: nudge 0.4s ease; }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Under the console: connect your AI tool + ticks */
.ah-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; margin-top: 26px; color: var(--muted); }
.ah-connect { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.ah-connect .or { color: var(--dim); }
.ah-marks { display: flex; }
.ah-marks img { width: 34px; height: 34px; border-radius: 50%; background: #17122b; border: 2px solid #2b2448; padding: 6px; margin-left: -8px; object-fit: contain; }
.ah-marks img:first-child { margin-left: 0; }
.ah-link { color: var(--cream); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); font-weight: 500; }
.ah-link:hover { text-decoration-color: var(--pink); }
.ah-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 17px; }
.ah-ticks li { display: inline-flex; align-items: center; gap: 9px; }
.ah-ticks li:not(.ah-enter)::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: rgba(79, 227, 193, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fe3c1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* ---------- build run (after sign-up) ---------- */
.console[data-state="run"] .cs-toggles .tg { pointer-events: none; }
.console[data-state="run"] .cs-box { min-height: 0; }
.console[data-state="run"] .cs-box textarea { color: var(--cream); }
.console[data-state="run"] .cs-reply { display: none; }
.cs-run { margin-top: 18px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(12, 9, 23, 0.8); padding: 18px 22px 20px; animation: runIn 0.35s ease both; }
@keyframes runIn { from { opacity: 0; transform: translateY(8px); } }
.run-head { display: flex; align-items: baseline; gap: 12px; }
.run-label { font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cs-run.done .run-label { color: var(--teal); }
.run-name { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.run-pct { margin-left: auto; font: 600 14px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.run-bar { height: 6px; border-radius: 999px; background: var(--panel-2); margin-top: 12px; overflow: hidden; }
.run-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--pink); transition: width 0.35s ease; }
.run-log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.run-log li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); animation: modIn 0.25s ease both; min-width: 0; }
.run-log li .st { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: spin 0.7s linear infinite; }
.run-log li.ok { color: var(--cream); }
.run-log li.ok .st { animation: none; border: 0; background: rgba(79, 227, 193, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fe3c1' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.run-log li.ai.ok .st { background-color: rgba(154, 123, 255, 0.22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3l1.6 4.4L16 9l-4.4 1.6L10 15l-1.6-4.4L4 9l4.4-1.6z'/%3E%3C/svg%3E"); background-size: 13px; }
.run-log li.ai.ok { color: #d6c9ff; font-weight: 600; }
.run-log li span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }

.run-result { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 22px; align-items: stretch; animation: runIn 0.45s ease both; }
.rc-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; isolation: isolate; border: 1px solid rgba(255, 255, 255, 0.12); background: #120d22; }
.rc-cover::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 80% at 78% 18%, color-mix(in srgb, var(--g) 70%, transparent), transparent 70%),
  radial-gradient(70% 70% at 10% 100%, rgba(255, 45, 158, 0.45), transparent 70%),
  repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 22px),
  linear-gradient(160deg, #241a46, #0e0a1c); }
.rc-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.8) 0 1px, transparent 2px), radial-gradient(circle at 64% 22%, rgba(255,255,255,0.6) 0 1px, transparent 2px), radial-gradient(circle at 84% 60%, rgba(255,255,255,0.7) 0 1px, transparent 2px), radial-gradient(circle at 42% 70%, rgba(255,255,255,0.5) 0 1px, transparent 2px), linear-gradient(0deg, rgba(10, 7, 20, 0.7), transparent 60%); }
.rc-glyph { position: absolute; right: -14px; top: -10px; width: 52%; height: auto; z-index: -1; fill: none; stroke: color-mix(in srgb, var(--g) 85%, white); stroke-width: 1.1; opacity: 0.55; transform: rotate(-10deg); filter: drop-shadow(0 0 18px var(--g)); }
.rc-genre { align-self: flex-start; font: 700 11px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: rgba(15, 12, 26, 0.75); border: 1px solid color-mix(in srgb, var(--g) 70%, transparent); color: var(--g); margin-bottom: 8px; }
.rc-title { font: 800 clamp(34px, 3.4vw, 50px)/0.86 var(--display); text-transform: uppercase; letter-spacing: 0.01em; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 30px color-mix(in srgb, var(--g) 50%, transparent); overflow-wrap: anywhere; }
.rc-badge { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(15, 12, 26, 0.82); color: var(--teal); border: 1px solid rgba(79, 227, 193, 0.5); }
.rc-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.rc-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rc-url { font: 500 14px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.rc-url b { color: var(--cream); }
.rc-body p { color: var(--muted); font-size: 15.5px; }
.rc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.rc-acts .btn { font-size: 18px; padding: 11px 18px; }
.cs-follow { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
.follow-k { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.follow-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fchip { border: 1px solid var(--line-2); background: var(--panel); color: var(--cream); border-radius: 999px; padding: 9px 14px; font: 500 14.5px/1 var(--body); transition: border-color 0.15s ease, background 0.15s ease; }
.fchip:hover { border-color: var(--pink); }
.fchip[disabled] { opacity: 0.45; cursor: default; border-color: var(--line); }
.follow-log { display: grid; gap: 10px; margin-top: 12px; }
.fl { display: flex; gap: 10px; align-items: flex-start; animation: modIn 0.3s ease both; }
.fl.you { justify-content: flex-end; }
.fl .fb { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.fl.you .fb { background: rgba(94, 200, 255, 0.14); border: 1px solid rgba(94, 200, 255, 0.35); border-bottom-right-radius: 4px; }
.fl.sw .fb { background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.fl.sw .fb b { color: var(--teal); font-weight: 600; }
.fl .dotty { display: inline-flex; gap: 4px; padding: 4px 0; }
.fl .dotty i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 0.9s ease-in-out infinite; }
.fl .dotty i:nth-child(2) { animation-delay: 0.15s; } .fl .dotty i:nth-child(3) { animation-delay: 0.3s; }

/* ---------- How it works: original cards, plus "Build with Sweet AI or" ---------- */
.bw-or { font: 500 14px/1 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--dim); }
.eq-card .bw-marks { flex-wrap: wrap; row-gap: 12px; }
.bw-marks > span:first-child { white-space: nowrap; }
.bw-alt { display: inline-flex !important; align-items: center; gap: 14px; margin: 0 !important; }

/* ---------- Pricing: original plans, plus one Sweet AI credit line each ---------- */
.plan-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; }
.pa-k { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid rgba(255, 45, 158, 0.55); background: rgba(255, 45, 158, 0.12); font: 800 12.5px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); }
.pa-k svg, .plans-topup > svg { width: 13px; height: 13px; flex: none; fill: rgba(255, 45, 158, 0.3); stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plans-topup > svg { width: 16px; height: 16px; }
.pa-v { color: var(--muted); font-size: 15px; white-space: nowrap; }
.pa-v b { color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; }
.plans-topup { margin-top: 8px; }
.plans-topup > svg { margin: 0 3px 0 0; }
.plans-topup b { color: var(--cream); font-weight: 600; }
.verified { width: 22px; height: 22px; flex: none; }
.verified path:first-child { fill: var(--sky); }
.verified .ck { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.verified.sm { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; margin-left: 6px; }
.verified.gold path:first-of-type { fill: url(#gold-g); }

/* ---------- Closing band: the chat comes back ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band { background: var(--ink-2); }
.cta-band + .foot { border-top: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(42% 62% at 72% 52%, rgba(154, 123, 255, 0.11), transparent 70%); }
.cta-band .wrap { position: relative; padding-block: 88px; align-items: start; }
.cta-ask { align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 20px; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(#150f28, #150f28) padding-box, var(--ring-grad) border-box; }
.cta-ask > svg { width: 22px; height: 22px; flex: none; fill: rgba(255, 45, 158, 0.25); stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta-ask input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--cream); font: 400 20px/1.3 var(--body); }
.cta-ask input::placeholder { color: #8f86ad; }
.build-it.sm { margin-left: 0; padding: 14px 22px 14px 26px; font-size: 22px; gap: 10px; box-shadow: 0 6px 18px rgba(255, 45, 158, 0.28); }
.build-it.sm svg { width: 20px; height: 20px; }
.cta-copy .btn.lg { background: transparent; color: var(--cream); border: 2px solid var(--line-2); }
.cta-copy .btn.lg:hover { border-color: var(--cream); background: transparent; }
.cta-connect { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: -8px; padding-left: 20px; font-size: 17px; color: var(--muted); }
.cta-connect .or { color: var(--dim); }
.cta-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 10px; }
.cta-either { color: var(--muted); font-size: 16px; }

/* ---------- Mobile dock ---------- */
.dock { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 70; transform: translate(-50%, 140%); display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px 14px 18px; border-radius: 999px; border: 2px solid transparent; background: linear-gradient(#1a1430, #1a1430) padding-box, var(--ring-grad) border-box; color: var(--cream); font: 700 19px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); transition: transform 0.35s cubic-bezier(.2,.8,.2,1); white-space: nowrap; }
.dock svg { width: 19px; height: 19px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock.show { transform: translate(-50%, 0); }

/* ---------- Sign-up sheet ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(6, 4, 14, 0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.2s ease both; overflow: auto; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { position: relative; width: min(500px, 100%); border-radius: 30px; padding: 2px; background: var(--ring-grad); animation: sheetIn 0.35s cubic-bezier(.2,.8,.2,1) both; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.sh-in { border-radius: 28px; background: linear-gradient(180deg, #211a3e, #140f27); padding: 28px 30px 22px; }
.sh-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(15, 12, 26, 0.7); font-size: 22px; line-height: 1; display: grid; place-items: center; color: var(--muted); }
.sh-close:hover { color: var(--cream); border-color: var(--cream); }
.sheet h2 { font-size: clamp(36px, 5vw, 48px); font-weight: 800; text-transform: uppercase; line-height: 0.92; margin-top: 16px; }
.sh-sub { color: var(--muted); font-size: 16px; margin-top: 10px; }
.sh-idea { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #0c0917; border: 1px solid rgba(255, 45, 158, 0.35); }
.sh-idea-k { font: 600 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); }
.sh-idea p { margin-top: 6px; font-size: 15.5px; color: var(--cream); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sh-idea-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sh-idea-mods:empty { display: none; }
.sh-idea-mods span { font: 600 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; color: var(--pink); background: rgba(255, 45, 158, 0.1); border: 1px solid rgba(255, 45, 158, 0.35); }
.sh-marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.sh-marks span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--cream); }
.sh-marks img { width: 26px; height: 26px; border-radius: 7px; }
.sh-btns { display: grid; gap: 10px; margin-top: 18px; }
.sso { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: #f5f1ea; color: #15111f; font: 600 16.5px/1 var(--body); transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease; }
.sso:hover { transform: translateY(-1px); background: #fff; }
.sso svg { width: 20px; height: 20px; flex: none; }
.sso[data-sso="Apple"] { background: #000; color: #fff; border-color: #2b2b2b; }
.sso[data-sso="Apple"]:hover { background: #111; }
.sso[data-sso="Discord"] { background: #5865f2; color: #fff; border-color: #5865f2; }
.sso[data-sso="Discord"] svg path { fill: #fff; }
.sso[data-sso="Discord"]:hover { background: #6974f5; }
.sso.email { width: auto; flex: none; background: var(--pink); border-color: var(--pink); color: var(--ink); font-weight: 700; }
.sso.email:hover { background: #ff54b0; }
.sso.busy { pointer-events: none; color: transparent !important; }
.sso.busy svg { opacity: 0; }
.sso.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2.5px solid rgba(128, 128, 128, 0.35); border-top-color: currentColor; color: var(--pink); animation: spin 0.7s linear infinite; }
.sh-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }
.sh-or::before, .sh-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.sh-email { display: flex; gap: 8px; }
.sh-email input { flex: 1; min-width: 0; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: #0c0917; color: var(--cream); font: 500 16px/1 var(--body); outline: none; }
.sh-email input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 45, 158, 0.15); }
.sh-err { color: #ff8fb8; font-size: 13.5px; margin-top: 8px; }
.sh-ticks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; }
.sh-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.sh-ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(79, 227, 193, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fe3c1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sh-fine { color: var(--dim); font-size: 12px; line-height: 1.5; margin-top: 12px; }
.sh-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
body.sheet-open { overflow: hidden; }

/* ---------- Sweet AI pill ---------- */
.cs-pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 45, 158, 0.55); background: rgba(255, 45, 158, 0.12); font: 800 19px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); }
.cs-pill svg { width: 20px; height: 20px; fill: rgba(255, 45, 158, 0.3); stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet .cs-pill { font-size: 15px; padding: 7px 14px 7px 11px; }
.sheet .cs-pill svg { width: 16px; height: 16px; }
.bw-marks .bw-sweet { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; border: 1px solid rgba(255, 45, 158, 0.55); background: rgba(255, 45, 158, 0.12); font: 800 14px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); margin-right: 0; }
.bw-sweet svg { width: 15px; height: 15px; fill: rgba(255, 45, 158, 0.3); stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* build run: the popsicle fills up as Sweet AI works */
.run-pop { position: relative; flex: none; align-self: center; width: 13px; height: 26px; margin-right: 2px; }
.run-pop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.run-pop svg:first-child { opacity: 0.2; filter: grayscale(1); }
.rp-fill { clip-path: inset(calc((1 - var(--p, 0)) * 75%) 0 0 0); transition: clip-path 0.35s ease; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav-ask { flex-basis: 260px; }
}
@media (max-width: 1000px) {
  .nav-ask { display: none; }
  .nav-ask + .nav-cta { margin-left: auto; }
  .run-result { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ah-wrap { padding-block: 22px 0; }
  .intro-wrap { padding-bottom: 64px; }
  .intro-line { height: 52px; margin: 22px 0 26px; }
  .intro h2 { font-size: clamp(42px, 12vw, 60px); }
  .intro .lede { font-size: 16.5px; line-height: 2.1; }
  .pill { padding: 0 10px 0 8px; gap: 6px; }
  .pill svg { width: 14px; height: 14px; }
    .console { border-radius: 26px; }
  .cs-in { border-radius: 23px; padding: 18px 16px 16px; }
  .cs-top { gap: 10px; }
  .cs-pill { font-size: 15px; padding: 7px 12px 7px 10px; }
  .cs-pill svg { width: 16px; height: 16px; }
  .cs-title { display: none; }
  .cs-status { font-size: 14px; }
  .cs-h { font-size: 38px; margin-top: 14px; }
  .cs-box { padding: 14px 16px 12px; min-height: 150px; border-radius: 18px; }
  .cs-ghost { left: 16px; right: 16px; top: 14px; }
  .cs-box textarea, .cs-ghost { font-size: 20px; }
  .cs-bar { gap: 10px; }
  .cs-toggles { gap: 8px; width: 100%; }
  .tg { font-size: 16px; padding: 10px 12px 10px 10px; gap: 7px; flex: 1 1 40%; justify-content: center; }
  .cs-incl { font-size: 13.5px; gap: 6px 14px; margin-top: 16px; padding-top: 12px; }
  .cs-incl .k { flex-basis: 100%; }
  .tg svg { width: 17px; height: 17px; }
  .build-it { width: 100%; justify-content: center; margin-left: 0; padding: 18px 24px; font-size: 30px; }
  .cs-run { padding: 14px 14px 16px; }
  .run-log { grid-template-columns: minmax(0, 1fr); }
  .ah-under { gap: 12px 18px; }
  .ah-connect { font-size: 16px; }
  .cta-connect { font-size: 16px; }
  .ah-ticks { font-size: 15px; justify-content: center; }
  .ah-enter { display: none !important; }
  .cta-band .wrap { padding-block: 60px; }
  .cta-ask { padding: 6px 6px 6px 14px; flex-wrap: wrap; border-radius: 22px; }
  .cta-ask input { font-size: 17px; flex-basis: calc(100% - 40px); padding: 8px 0; }
  .cta-ask .build-it.sm { width: 100%; justify-content: center; }
  .sheet-back { place-items: end center; padding: 0; }
  .sheet { width: 100%; border-radius: 26px 26px 0 0; padding: 2px 2px 0; }
  .sh-in { border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .sheet h2 { font-size: 36px; }
  .sso { padding: 13px 14px; }
}
@media (min-width: 721px) { .dock { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .console, .console::after, .nav-ask, .cta-ask, .dock, .sheet { animation: none !important; }
  .mod, .run-log li, .fl { animation: none; }
}
