/* Site Coinkit, sur la base du template SphereAI : hero bleu en carte arrondie, titres Manrope légers, cartes nacrées. */
:root {
  --ink: #151515;
  --muted: #969d9e;
  --page: #ffffff;
  --blue: #2358c9;
  --accent: #4f6bff;
  --bg: #0b0a0c;
  --text: #f4f1ee;
  --glass: rgba(14, 12, 14, .72);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: linear-gradient(180deg, #e7f4ff 0, #f6fbff 1500px, #fff 2600px); color: var(--ink); font-family: Satoshi, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { filter: brightness(0) invert(1); }

/* Bouton pilule noir avec la flèche dans un rond, comme « Get Started » du template. */
.pill-btn { display: inline-flex; align-items: center; gap: 14px; height: 42px; padding: 4px 5px 4px 18px; border-radius: 100px; font-size: 13px; font-weight: 500; transition: transform .25s cubic-bezier(.2, .9, .2, 1); }
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: transform .3s; }
.pill-btn:hover i { transform: rotate(45deg); }
.pill-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill-btn.dark { background: #030509; color: #fff; box-shadow: 0 0 0 1px rgba(110, 190, 255, .55), 0 6px 18px -8px rgba(35, 88, 201, .6); }
.pill-btn.dark i { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.pill-btn.glass { background: linear-gradient(180deg, rgba(150, 190, 240, .85), rgba(110, 160, 230, .85)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 10px 24px -12px rgba(35, 88, 201, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill-btn.glass i { background: rgba(255, 255, 255, .22); }
.pill-btn.wide { display: flex; justify-content: space-between; width: 100%; }

/* Hero */
.hero { position: relative; margin: 20px 20px 0; min-height: min(826px, calc(100vh - 20px)); border-radius: 28px; overflow: hidden; padding: 24px 32px 60px; display: flex; flex-direction: column; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 500; letter-spacing: -.2px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; font-size: 13px; color: rgba(255, 255, 255, .92); }
.links a { transition: opacity .2s; } .links a:hover { opacity: .65; }
.hero-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 40px; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px; border-radius: 100px; font-size: 14px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tag svg { width: 16px; height: 16px; fill: #fff; }
h1 { margin-top: 26px; font-family: Manrope, sans-serif; font-weight: 300; font-size: 84px; line-height: 1.03; letter-spacing: -1px; text-align: center; }
h1 span { display: block; white-space: nowrap; }
.orb { display: inline-block; width: 1.02em; height: 1.02em; margin: 0 .06em; vertical-align: -.17em; border-radius: 50%; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.prompt { position: relative; width: min(840px, 100%); margin-top: 72px; border-radius: 22px; overflow: visible; background: rgba(40, 70, 120, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 30px 60px -30px rgba(10, 40, 120, .45); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.prompt-glass { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; opacity: .9; pointer-events: none; }
.prompt > *:not(.prompt-glass, .sr-only) { position: relative; }
.prompt textarea { display: block; width: 100%; height: 86px; resize: none; padding: 20px 20px 0; font-size: 15px; line-height: 22px; color: #fff; outline: none; }
.prompt textarea::placeholder { color: rgba(255, 255, 255, .78); }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 14px 14px; }
.chips { display: flex; gap: 8px; }
.dd { position: relative; }
.chip { height: 34px; padding: 0 12px; border-radius: 100px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); transition: background .2s; }
.chip:hover, .chip[aria-expanded="true"] { background: rgba(255, 255, 255, .22); }
.chip img { width: 14px; height: 14px; }
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu { position: absolute; left: 0; top: 42px; z-index: 5; min-width: 240px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 0 0 1px rgba(20, 60, 120, .08), 0 24px 50px -12px rgba(20, 60, 140, .35); display: grid; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
/* 25 styles : le menu défile au lieu de sortir de l'écran. */
.menu[data-menu="style"] { top: auto; bottom: 44px; max-height: min(380px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.menu button { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 9px; font-size: 14px; }
.menu button:hover, .menu button.on { background: #eef5fc; }
.menu button img { width: 16px; height: 16px; grid-row: span 2; }
.menu button img.mono { filter: none; }
.menu button small { grid-column: 2; font-size: 12px; color: #7c8487; }
.menu button:not(:has(img)) { grid-template-columns: 1fr; } .menu button:not(:has(img)) small { grid-column: 1; }
.send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); transition: transform .2s, background .2s; }
.send:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .26); }
.send svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prompt.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.made { margin-top: 54px; text-align: center; }
.made p { font-size: 14px; }
.rail { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; font-size: 17px; font-weight: 700; }
.rail span { display: flex; align-items: center; gap: 9px; }
.rail img, .rail svg { width: 22px; height: 22px; object-fit: contain; }
.rail i { width: 1px; height: 20px; background: rgba(255, 255, 255, .6); }

/* Entrée du hero, en fondu flouté comme les apparitions Framer du template. */
.in-1, .in-2, .in-3, .in-4 { opacity: 0; }
.ready .in-1, .ready .in-2, .ready .in-3, .ready .in-4 { animation: rise 1.1s cubic-bezier(.2, .9, .2, 1) both; }
.ready .in-2 { animation-delay: .12s; } .ready .in-3 { animation-delay: .26s; } .ready .in-4 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Sections */
.sec { padding: 110px 20px 30px; }
.head { max-width: 760px; margin: 0 auto; text-align: center; display: grid; justify-items: center; }
.label { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 100px; background: #fff; font-size: 14px; box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 2px 1px rgba(80, 101, 109, .17); }
h2 { margin-top: 26px; font-family: Manrope, sans-serif; font-weight: 400; font-size: 42px; line-height: 1.04; letter-spacing: -.4px; }
.head p { margin-top: 26px; font-size: 14px; line-height: 21px; color: #9ba1a3; }
.center { display: flex; justify-content: center; margin-top: 40px; }

.goals { max-width: 1100px; margin: 50px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.goal { position: relative; overflow: hidden; padding: 24px; border-radius: 24px; background: linear-gradient(145deg, #fff 0%, #f4fafc 80%, #eaf3f6 100%); box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 2px 1px rgba(80, 101, 109, .17); }
.goal::before { content: ""; position: absolute; left: -40px; top: -60px; width: 200px; height: 170px; background: radial-gradient(closest-side, rgba(78, 178, 240, .55), transparent); }
.gem { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3d8fd6 0%, #155394 45%, #0b2f5c 100%); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .35), inset 0 -4px 8px rgba(0, 0, 0, .3), 0 6px 14px -4px rgba(12, 60, 120, .5); }
.gem svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.goal h3 { position: relative; margin-top: 22px; font-size: 25px; font-weight: 400; letter-spacing: -.7px; line-height: 28px; }
.goal p { position: relative; margin-top: 16px; font-size: 14px; line-height: 21px; color: var(--muted); max-width: 290px; }

.showcase { max-width: 760px; margin: 50px auto 0; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(80, 101, 109, .12), 0 40px 70px -30px rgba(20, 60, 140, .45); }
.b-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; background: #16181c; }
.b-bar .dots { display: flex; gap: 6px; } .b-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.b-url { flex: 1; max-width: 300px; margin: 0 auto; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.b-view { position: relative; height: 420px; overflow: hidden; }
.b-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; animation: browse 34s ease-in-out infinite alternate; }
@keyframes browse { 0%, 6% { object-position: 50% 0; } 94%, 100% { object-position: 50% 100%; } }

.bento { max-width: 1060px; margin: 50px auto 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 28px; }
.bento h3 { font-size: 25px; font-weight: 400; line-height: 29px; letter-spacing: -.65px; }
.bento p { margin-top: 18px; font-size: 14px; line-height: 21px; }
.b-smart { grid-row: 1 / 3; padding: 38px 40px 40px; border-radius: 28px; background: radial-gradient(100% 60% at 50% 100%, #9abfe7 0%, #e9f6ff 42%, #fff 85%); box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 2px 1px rgba(80, 101, 109, .15); display: flex; flex-direction: column; }
.b-smart > p { color: #6f7577; max-width: 420px; }
.chat { position: relative; flex: 1; margin-top: 28px; min-height: 420px; border-radius: 24px; overflow: hidden; padding: 24px; background: linear-gradient(180deg, #5495d2 0%, #2458c9 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); color: #fff; }
.chat .q { display: flex; align-items: center; gap: 14px; }
.chat .q p { flex: 1; min-height: 76px; margin: 0; padding: 18px 20px; border-radius: 22px; font-size: 13px; line-height: 19px; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.chat .q svg { width: 24px; height: 24px; flex: none; fill: none; stroke: #fff; stroke-width: 1.6; }
.chat .spark { width: 26px; height: 26px; margin: 18px 0 -10px 0; fill: #fff; }
.chat .a { margin-left: 46px; border-radius: 22px; padding: 18px 20px 0; min-height: 280px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); overflow: hidden; opacity: 0; transform: translateY(10px); transition: opacity .7s, transform .7s cubic-bezier(.2, .9, .2, 1); }
.chat .a.show { opacity: 1; transform: none; }
.chat .a p { margin: 0; font-size: 13px; line-height: 19px; }
.chat .a img { width: 210px; height: 210px; margin: 26px auto -60px; border-radius: 46px; box-shadow: 0 20px 40px -10px rgba(10, 30, 90, .5); }
.b-api { padding: 40px; border-radius: 28px; background: radial-gradient(100% 60% at 50% 0, #87ade0 0%, #c1defa 55%, #fff 100%); box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 2px 1px rgba(80, 101, 109, .17); }
.b-api > p { color: #5f6669; }
.icons { display: flex; justify-content: space-between; padding: 20px 22px; margin-bottom: 30px; border-radius: 22px; background: linear-gradient(180deg, #4f8fd8, #2458c9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 14px 30px -14px rgba(20, 70, 170, .6); }
.icons span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); color: #fff; }
.icons img, .icons svg { width: 24px; height: 24px; object-fit: contain; }
.b-multi { padding: 40px; border-radius: 28px; background: linear-gradient(180deg, #5495d2 0%, #2458c9 100%); color: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.b-multi p { color: rgba(255, 255, 255, .62); margin-bottom: 40px; }
.b-multi .pill-btn { margin-top: auto; }

.plans { max-width: 700px; margin: 60px auto 0; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.plan { padding: 26px; border-radius: 26px; background: linear-gradient(135deg, #fff 0%, #f4fafe 100%); box-shadow: 0 0 0 1px rgba(80, 101, 109, .12); }
.plan:not(.pro) { margin-top: 56px; border-radius: 26px 0 0 26px; }
.plan h3 { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 400; letter-spacing: -.6px; line-height: 30px; }
.amt { display: block; margin-top: 10px; font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -1.4px; }
.plan p { margin: 16px 0 22px; font-size: 13px; line-height: 19px; }
.plan ul { list-style: none; display: grid; gap: 16px; margin-top: 30px; font-size: 12.5px; }
.plan li { display: flex; align-items: center; gap: 14px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a55a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8 12.5 2.7 2.7L16 9.8'/%3E%3C/svg%3E"); }
.pro { padding: 0; background: linear-gradient(145deg, #fff 0%, #f3f9fd 100%); box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 28px 48px -18px rgba(58, 103, 144, .22); }
.pro-top { padding: 26px 26px 0; border-radius: 26px 26px 26px 26px; background: radial-gradient(80% 100% at 100% 0, #89b7b8 0%, #468bcf 35%, #2358c9 100%); color: #fff; padding-bottom: 0; }
.pro-top .amt { font-weight: 400; }
.pro-top .pill-btn { transform: translateY(50%); }
.pro-top .pill-btn:hover { transform: translateY(calc(50% - 2px)); }
.pro ul { padding: 34px 26px 30px; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 100px; font-size: 12px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); letter-spacing: 0; }
.badge svg { width: 12px; height: 12px; fill: #fff; }

.faqs { max-width: 1060px; margin: 50px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fq { padding: 26px; border-radius: 22px; background: linear-gradient(145deg, #fff 0%, #f4fafc 80%, #edf5f8 100%); box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 2px 1px rgba(80, 101, 109, .15); }
.fq h3 { font-size: 17px; font-weight: 500; letter-spacing: -.3px; }
.fq p { margin-top: 12px; font-size: 13.5px; line-height: 21px; color: #7d8486; }

/* Pied de page : grande carte bleue, appel final et grand logo. */
.foot { position: relative; margin: 110px 20px 20px; border-radius: 28px; overflow: hidden; padding: 48px 48px 30px; color: #fff; display: grid; grid-template-columns: 1fr auto; row-gap: 70px; }
.foot-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foot > *:not(.foot-bg) { position: relative; }
.foot-top { grid-column: 1 / 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.foot h2 { margin: 0; font-family: Satoshi, sans-serif; font-weight: 300; font-size: 42px; line-height: 1.04; letter-spacing: -1px; }
.foot-links { grid-column: 2; display: flex; gap: 26px; font-size: 13px; }
.foot-links a:hover { opacity: .7; }
.wordmark { grid-column: 1 / 3; display: flex; align-items: center; gap: 36px; }
.wordmark svg { width: 160px; height: 160px; fill: #fff; flex: none; }
.wordmark span { font-family: Manrope, sans-serif; font-weight: 400; font-size: 168px; line-height: 1; letter-spacing: -6px; }
.foot small { grid-column: 1 / 3; font-size: 12px; }

/* Apparitions au défilement */
.rv { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity 1s cubic-bezier(.2, .9, .2, 1), transform 1s cubic-bezier(.2, .9, .2, 1), filter 1s; transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 1000px) {
  .links { display: none; }
  h1 { font-size: 60px; }
  .wordmark span { font-size: 110px; letter-spacing: -4px; } .wordmark svg { width: 104px; height: 104px; }
}
@media (max-width: 760px) {
  .hero { margin: 10px 10px 0; padding: 18px 16px 40px; min-height: 0; }
  .nav .pill-btn { height: 38px; font-size: 12px; padding-left: 14px; } .nav .pill-btn i { width: 28px; height: 28px; }
  .hero-in { padding-top: 70px; }
  .tag { font-size: 12.5px; }
  h1 { font-size: 42px; letter-spacing: -.6px; }
  .prompt { margin-top: 44px; }
  .prompt textarea { height: 110px; font-size: 15px; }
  .chip span { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .made { margin-top: 40px; }
  .rail { font-size: 14px; gap: 10px 14px; } .rail i { display: none; }
  .sec { padding: 80px 16px 20px; }
  h2 { font-size: 32px; }
  h2 br, .head p br { display: none; }
  .goals, .bento, .faqs, .plans { grid-template-columns: 1fr; gap: 16px; }
  .b-smart { grid-row: auto; padding: 28px 22px; }
  .chat { padding: 16px; } .chat .a { margin-left: 0; margin-top: 18px; }
  .b-api, .b-multi { padding: 28px 22px; }
  .icons { padding: 14px; } .icons span { width: 44px; height: 44px; }
  .b-view { height: 300px; }
  .plan:not(.pro) { margin-top: 0; border-radius: 26px; }
  .foot { margin: 80px 10px 10px; padding: 32px 22px 24px; grid-template-columns: 1fr; row-gap: 40px; }
  .foot-top { flex-direction: column; grid-column: 1; }
  .foot h2 { font-size: 32px; } .foot h2 br { display: none; }
  .foot-links { grid-column: 1; flex-wrap: wrap; gap: 14px 20px; }
  .wordmark { grid-column: 1; gap: 16px; } .wordmark svg { width: 64px; height: 64px; } .wordmark span { font-size: 64px; letter-spacing: -2px; }
  .foot small { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .orb, .b-view img { animation: none; } .in-1, .in-2, .in-3, .in-4, .rv { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; } }


/* Studio, dans le style clair du site : panneau de choix en cartes nacrées, aperçu dans une fenêtre arrondie. */
.studio { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 380px 1fr; gap: 16px; padding: 16px; background: linear-gradient(180deg, #e7f4ff 0%, #f6fbff 100%); color: var(--ink); font-family: Satoshi, system-ui, sans-serif; animation: fadeIn .35s ease; }
.studio[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.st-close { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; background: #fff; box-shadow: 0 0 0 1px rgba(80, 101, 109, .12), 0 2px 1px rgba(80, 101, 109, .12); transition: transform .2s; }
.st-close:hover { transform: rotate(90deg); }

/* Attente : carte bleue du hero, la pièce du logo Coinkit vient s'emboîter en boucle. */
.st-wait { display: none; }
.studio.busy .st-wait, .studio.failed .st-wait { display: grid; place-items: center; position: absolute; inset: 16px; z-index: 2; border-radius: 28px; overflow: hidden; color: #fff; background: #2a62d6 url("tpl/hero-bg.png") center / cover; }
.st-wait > .st-close { position: absolute; top: 20px; right: 20px; color: var(--ink); }
/* Voile bleu derrière le texte pour qu'il reste lisible sur la zone claire de la photo. */
.st-wait::before { content: ""; position: absolute; inset: 0; background: radial-gradient(42% 40% at 50% 52%, rgba(14, 50, 140, .42), rgba(14, 50, 140, .12) 70%, transparent 100%); }
.st-wait-in { position: relative; text-shadow: 0 1px 18px rgba(10, 30, 90, .35); }
.st-wait-in { display: grid; justify-items: center; gap: 26px; max-width: 440px; padding: 0 24px; text-align: center; }
.kit-mark { width: 88px; height: 88px; padding: 18px; border-radius: 24px; fill: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-sizing: content-box; }
.kit-piece { fill: #fff; animation: click 1.6s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes click { 0%, 15% { transform: translate(0, 0); } 45%, 70% { transform: translate(-7px, 7px); } 100% { transform: translate(0, 0); } }
.st-wait b { display: block; font-family: Manrope, sans-serif; font-weight: 300; font-size: 40px; line-height: 1.05; letter-spacing: -.6px; }
.st-wait p { margin-top: 14px; font-size: 15px; line-height: 23px; color: rgba(255, 255, 255, .88); }
.st-wait-err { display: none; }
.studio.failed .st-wait-copy { display: none; }
.studio.failed .st-wait-err { display: grid; justify-items: center; }
.studio.failed .kit-piece { animation: none; }
.st-wait-err .pill-btn { margin-top: 26px; }

.st-side { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.st-side::-webkit-scrollbar { display: none; }
.st-top, .st-step { padding: 20px; border-radius: 24px; background: linear-gradient(145deg, #fff 0%, #f4fafc 80%, #eef6f9 100%); box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 2px 1px rgba(80, 101, 109, .14); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-coin img { width: 46px; height: 46px; border-radius: 13px; flex: none; }
.st-coin b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-coin small { color: var(--muted); font-size: 13.5px; }
.st-step h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px; font-weight: 500; letter-spacing: -.3px; }
.st-step h3 i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; background: radial-gradient(circle at 35% 30%, #3d8fd6 0%, #155394 55%, #0b2f5c 100%); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35); }
.st-marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-marks button { aspect-ratio: 1; border-radius: 15px; overflow: hidden; box-shadow: 0 0 0 2px transparent, 0 0 0 4px transparent; transition: box-shadow .2s, transform .2s; }
.st-marks button img { width: 100%; height: 100%; }
.st-marks button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.st-marks button:hover { transform: translateY(-2px); }
.st-note { margin-top: 12px; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.st-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-styles button { text-align: left; border-radius: 14px; padding: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(80, 101, 109, .12); transition: box-shadow .2s, transform .2s; }
.st-styles button:hover { transform: translateY(-2px); }
.st-styles button.on { box-shadow: 0 0 0 2px var(--blue), 0 10px 20px -12px rgba(35, 88, 201, .5); }
.st-styles img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 9px; }
.st-styles span { display: block; padding: 7px 4px 2px; font-size: 13.5px; font-weight: 500; }
.st-kit ul { list-style: none; display: grid; gap: 12px; font-size: 13px; }
.st-kit li { display: flex; align-items: center; gap: 12px; }
.st-kit li::before { content: ""; flex: none; width: 16px; height: 16px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a55a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8 12.5 2.7 2.7L16 9.8'/%3E%3C/svg%3E"); }
.st-price { margin-top: 20px; padding: 20px; border-radius: 20px; color: #fff; background: radial-gradient(80% 100% at 100% 0, #89b7b8 0%, #468bcf 35%, #2358c9 100%); }
.st-price b { display: block; font-size: 38px; font-weight: 400; line-height: 44px; letter-spacing: -1.3px; }
.st-price small { font-size: 13px; color: rgba(255, 255, 255, .85); }
/* Paiement : montant en SOL, QR Solana Pay, Phantom, puis lien privé et .zip une fois payé. */
.st-buy { margin-top: 12px; }
.st-kit [hidden] { display: none !important; }
.st-pay, .st-paid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pay-amt b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.pay-amt small { color: var(--muted); font-size: 12.5px; }
.pay-qr { width: 190px; padding: 12px; margin: 4px auto 0; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(80, 101, 109, .14); }
.pay-qr svg { display: block; width: 100%; height: auto; }
.pay-how { font-size: 12.5px; line-height: 18px; color: var(--muted); text-align: center; }
.pay-open { justify-self: center; font-size: 13px; font-weight: 500; color: var(--blue); }
.pay-open:hover { text-decoration: underline; }
.pay-status { min-height: 18px; font-size: 13px; text-align: center; color: #2b6b46; }
.pay-status[data-kind="warn"] { color: #b4532a; }
.st-paid b { font-size: 18px; font-weight: 700; color: #1f8a4c; }
.st-paid p { font-size: 13px; color: var(--muted); }
.paid-link { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 12px; border-radius: 100px; background: #eff5f9; }
.paid-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.lock-note { max-width: 1040px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #3c5f86; background: #dfeefc; }

.st-view { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 10px 12px 12px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 30px 60px -30px rgba(20, 60, 140, .3); }
.st-bar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 4px 0 8px; }
.st-bar .dots { display: flex; gap: 6px; } .st-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #dfe7ec; }
.url { flex: 1; max-width: 460px; margin: 0 auto; height: 30px; border-radius: 100px; background: #eff5f9; display: grid; place-items: center; font-size: 13px; color: #6f7779; }
.st-size { display: flex; gap: 2px; padding: 3px; border-radius: 100px; background: #eff5f9; }
.st-size button { padding: 5px 12px; border-radius: 100px; font-size: 12.5px; color: #6f7779; transition: background .2s, color .2s; } .st-size button.on { background: #030509; color: #fff; }
.st-frame { flex: 1; margin-top: 8px; border-radius: 18px; overflow: hidden; background: #eef4f8; box-shadow: inset 0 0 0 1px rgba(80, 101, 109, .1); display: flex; justify-content: center; }
.st-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .4s cubic-bezier(.2, .9, .2, 1); }
.st-frame.mob iframe { width: 390px; box-shadow: 0 0 0 1px rgba(80, 101, 109, .12); }
.st-view [data-pane][hidden] { display: none !important; }
.st-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 100px; background: #eff5f9; }
.st-tabs button { padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 500; color: #6f7779; transition: background .2s, color .2s; }
.st-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 60, 120, .15); }
.st-pane { flex: 1; min-height: 0; margin-top: 8px; overflow-y: auto; border-radius: 18px; background: #eef4f8; padding: 24px; }

/* Kit X : profil (bannière, avatar carré, bio) et fil des posts, chacun avec son bouton. */
.xk { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.xk-profile, .xk-feed, .sh { border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(80, 101, 109, .1), 0 2px 1px rgba(80, 101, 109, .12); }
.xk-profile { overflow: hidden; padding-bottom: 20px; }
.xk-banner { display: block; width: 100%; aspect-ratio: 3 / 1; height: auto; }
.xk-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 18px; }
.xk-av { width: 22%; aspect-ratio: 1; margin-top: -11%; border-radius: 16%; border: 4px solid #fff; position: relative; }
.xk-dl { display: flex; gap: 8px; margin-top: 12px; }
.kd, .kc { height: 32px; padding: 0 14px; border-radius: 100px; font-size: 12.5px; font-weight: 500; flex: none; transition: background .2s, transform .2s; }
.kd { background: #030509; color: #fff; } .kd:hover { transform: translateY(-1px); }
.kc { background: #eff5f9; color: var(--ink); } .kc:hover { background: #e2edf4; }
.xk-name { display: block; margin: 12px 18px 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.xk-tick { display: block; margin: 2px 18px 0; color: #6f7779; font-size: 14px; }
.xk-bio { display: flex; gap: 14px; align-items: flex-start; margin: 12px 18px 0; }
.xk-bio p { flex: 1; font-size: 15px; line-height: 21px; }
.xk-feed { padding: 18px; }
.xk-feed h4, .sh h4 { font-size: 13px; font-weight: 500; color: #6f7779; margin: 4px 2px 10px; }
.xk-feed h4 + .xk-post { margin-top: 0; }
.xk-feed .xk-post + h4 { margin-top: 20px; }
.xk-post { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #f5f9fb; }
.xk-post + .xk-post { margin-top: 8px; }
.xk-post img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.xk-post > div { flex: 1; min-width: 0; }
.xk-who { font-size: 14px; } .xk-post p + p { margin-top: 2px; font-size: 14.5px; line-height: 20px; }

/* Fiche de lancement : les champs du formulaire Proxima / pump.fun, prêts à coller. */
.sh { max-width: 820px; margin: 0 auto; padding: 22px; }
.sh h4 { font-size: 20px; color: var(--ink); margin: 0; letter-spacing: -.3px; }
.sh-note { margin-top: 6px; font-size: 13.5px; color: #6f7779; }
.sh-rows { margin-top: 18px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(80, 101, 109, .12); }
.sh-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; font-size: 14px; background: #fff; }
.sh-row + .sh-row { border-top: 1px solid rgba(80, 101, 109, .1); }
.sh-row span { color: #6f7779; }
.sh-row b { font-weight: 500; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-row b.wrap { white-space: normal; line-height: 20px; }
.sh-row b.soft { font-weight: 400; color: #8a9294; grid-column: 2 / 4; }
.sh-row b img { width: 24px; height: 24px; border-radius: 7px; }


@media (max-width: 900px) {
  /* Sur mobile, le panneau de choix puis l'aperçu, l'un sous l'autre dans un seul défilement. */
  .studio { display: block; overflow-y: auto; padding: 10px; }
  .st-side { overflow: visible; }
  .st-view { height: 82vh; margin-top: 10px; padding: 8px; }
  .studio.busy .st-wait, .studio.failed .st-wait { inset: 10px; position: fixed; }
  .st-wait b { font-size: 30px; }
  .st-bar { flex-wrap: wrap; height: auto; gap: 8px; padding: 2px; } .st-bar .url { display: none; }
  .st-pane { padding: 12px; }
  .xk { grid-template-columns: 1fr; }
  .sh-row { grid-template-columns: 1fr auto; } .sh-row span { grid-column: 1 / 3; font-size: 12.5px; } .sh-row b.soft { grid-column: 1 / 3; }
}
