/* static/css/star.css - G3, You star in it (templates/star.html). Site tokens with fallbacks, logical properties,
   phone first (390 px). */
.st-wrap { max-width: 640px; margin: 0 auto; padding: 1.5rem 16px 6rem; box-sizing: border-box; color: var(--text, #1B1638); }
.st-wrap [hidden] { display: none !important; }
.st-hero { text-align: center; margin-bottom: 1rem; }
.st-eyebrow { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: .78rem;
  font-weight: 800; color: #9D174D; background: #FDF2F8; border: 1px solid #FBCFE8; }
.st-h1 { margin: .7rem 0 .4rem; font-size: clamp(1.55rem, 6vw, 2.3rem); line-height: 1.12; font-weight: 900; letter-spacing: -.02em; }
.st-lead { margin: 0 auto; max-width: 540px; color: var(--text2, #4A4466); line-height: 1.5; }
.st-card { background: var(--bg2, #fff); border: 1px solid var(--border, #E6E1F5); border-radius: 18px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 6px 22px rgba(27, 22, 56, .05); box-sizing: border-box; }
.st-run, .st-done { scroll-margin-top: 150px; }
.st-demo { padding: 10px; text-align: center; }
.st-demo-video { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 14px; background: #120f24; object-fit: cover; }
.st-demo-empty { width: 100%; max-width: 240px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 14px;
  background: linear-gradient(160deg, #2d1b69, #9d174d); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.st-demo-note { margin: 8px 0 2px; font-size: .76rem; color: var(--text3, #7A7394); }
.st-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.st-step-h { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1rem; }
.st-num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent, #6D3BF5); color: #fff; font-size: .8rem; }
.st-tip { margin: 4px 0 8px; font-size: .84rem; color: var(--text2, #4A4466); line-height: 1.45; }
.st-read { display: block; margin-top: 4px; font-style: normal; font-weight: 700; color: var(--text, #1B1638); }
.st-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; border-radius: 16px;
  border: 2px dashed #CBBDF7; background: var(--bg3, #FAF9FF); cursor: pointer; overflow: hidden; }
.st-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-drop img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 10px; }
.st-drop.has { justify-content: flex-start; border-style: solid; }
.st-drop-t { font-weight: 800; font-size: .9rem; color: var(--accent, #6D3BF5); padding: 0 10px; }
.st-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-btn { min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border, #E6E1F5); background: var(--bg2, #fff);
  color: var(--text, #1B1638); font: 800 .9rem/1 var(--font, system-ui, sans-serif); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.st-rec-btn { border-color: #FBCFE8; color: #9D174D; }
.st-rec-btn.on { background: #DB2777; color: #fff; border-color: transparent; }
.st-dot { width: 12px; height: 12px; border-radius: 50%; background: #DB2777; }
.st-rec-btn.on .st-dot { background: #fff; animation: st-pulse 1s infinite; }
.st-up { position: relative; font-size: .84rem; font-weight: 700; color: var(--accent, #6D3BF5); cursor: pointer; text-decoration: underline; }
.st-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.st-meter { height: 6px; margin-top: 10px; border-radius: 99px; background: #FCE7F3; overflow: hidden; }
.st-meter i { display: block; height: 100%; width: 0; background: #DB2777; transition: width .2s linear; }
#st-voice-play { width: 100%; margin-top: 10px; }
.st-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 8px; }
.st-tab { min-height: 40px; border-radius: 12px; border: 1.5px solid var(--border, #E6E1F5); background: var(--bg2, #fff);
  font: 800 .84rem system-ui; color: var(--text2, #4A4466); cursor: pointer; }
.st-tab.on { border-color: var(--accent, #6D3BF5); color: var(--accent, #6D3BF5); background: var(--bg3, #F3F0FF); }
.st-text { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border, #E6E1F5);
  background: var(--bg3, #FAF9FF); color: var(--text, #1B1638); font: 600 .95rem/1.45 var(--font, system-ui, sans-serif); resize: vertical; }
.st-text:focus { outline: none; border-color: var(--accent, #6D3BF5); }
.st-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .86rem; font-weight: 700; }
.st-lang select { min-height: 40px; border-radius: 10px; border: 1px solid var(--border, #E6E1F5); padding: 0 10px; font: 700 .9rem system-ui;
  background: var(--bg2, #fff); color: var(--text, #1B1638); }
.st-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 12px; font-size: .84rem; line-height: 1.4; color: var(--text2, #4A4466); }
.st-consent input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--accent, #6D3BF5); }
.st-go { width: 100%; min-height: 54px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 900 1.02rem/1 var(--font, system-ui, sans-serif);
  background: linear-gradient(135deg, #db2777, #7c3aed); box-shadow: 0 10px 26px rgba(219, 39, 119, .28);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.st-go[disabled] { opacity: .7; cursor: progress; }
.st-pro { font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.st-fine { margin: 10px 0 0; font-size: .78rem; color: var(--text3, #7A7394); text-align: center; line-height: 1.45; }
.st-warn { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .84rem; line-height: 1.45; font-weight: 700;
  color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; }
.st-err { margin: 10px 0 0; text-align: center; color: #B91C1C; font-weight: 700; font-size: .86rem; }
.st-err a { color: inherit; }
.st-h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 900; }
.st-prog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-prog li { position: relative; padding-inline-start: 30px; font-weight: 700; color: var(--text3, #7A7394); min-height: 22px; }
.st-prog li::before { content: ''; position: absolute; inset-inline-start: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #D9D2F5; box-sizing: border-box; }
.st-prog li.now { color: var(--text, #1B1638); }
.st-prog li.now::before { border-color: var(--accent, #6D3BF5); border-top-color: transparent; animation: st-spin .8s linear infinite; }
.st-prog li.ok { color: #15803D; }
.st-prog li.ok::before { background: #16A34A; border-color: #16A34A; }
.st-done video { display: block; width: 100%; max-width: 320px; margin: 0 auto; border-radius: 14px; background: #000; }
.st-script { margin: 10px 0; font-size: .9rem; line-height: 1.5; color: var(--text2, #4A4466); text-align: center; }
.st-note { margin: 8px 0; padding: 10px 12px; border-radius: 10px; font-size: .85rem; line-height: 1.5; color: var(--text2, #4A4466); background: var(--surface2, rgba(124, 58, 237, .07)); text-align: center; overflow-wrap: anywhere; }
.st-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.st-pri { background: var(--accent, #6D3BF5); color: #fff; border-color: transparent; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .st-prog li.now::before, .st-rec-btn.on .st-dot { animation: none; } }
