/* =========================================================
   Santinho Virtual - Andréa Castro 55670
   Identidade: roxo #6B1DE8 + amarelo #F7C624, tags "coladas",
   Bebas Neue (display) + Manrope (UI). Celular primeiro.
   ========================================================= */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/bebas-neue-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/bebas-neue-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --roxo: #6B1DE8;
  --roxo-escuro: #5413BF;
  --roxo-profundo: #3E0E93;
  --amarelo: #F7C624;
  --amarelo-escuro: #D9A90E;
  --rosa: #F3248F;
  --ciano: #00A8FF;
  --gelo: #E1EEFC;

  --bg: #EEF3FC;
  --bg-grad-top: #D8E6FB;
  --surface: #FFFFFF;
  --surface-2: #F5F8FE;
  --line: #D9E2F3;
  --line-strong: #BFCDE8;
  --text: #2C2A3D;
  --text-muted: #646479;
  --text-faint: #8D8DA3;
  --accent: var(--roxo);
  --accent-text: #FFFFFF;
  --accent-soft: #EFE8FF;
  --accent-soft-text: #4E12B8;
  --ok: #1D9A6C;
  --ok-soft: #E3F6EE;
  --warn: #B7791F;
  --warn-soft: #FFF5DB;
  --err: #D03A5E;
  --err-soft: #FDE8EE;
  --shadow-card: 0 18px 48px -28px rgba(62, 14, 147, .35), 0 2px 6px -2px rgba(62, 14, 147, .08);
  --shadow-pop: 0 24px 60px -24px rgba(62, 14, 147, .45);
  --focus: 0 0 0 3px rgba(107, 29, 232, .35);

  --r-ctl: 14px;
  --r-card: 22px;

  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bebas Neue", "Bebas Neue Pro", Impact, "Arial Narrow", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .28s;

  --safe-b: env(safe-area-inset-bottom, 0px);
}



/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-grad-top) 0, var(--bg) 520px);
  background-repeat: no-repeat;
  min-height: 100dvh;
  padding-bottom: calc(92px + var(--safe-b));
  -webkit-tap-highlight-color: transparent;
}

img, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); }

.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- hero ---------- */
.hero { padding: calc(26px + env(safe-area-inset-top, 0px)) 4px 6px; }
.hero__title { margin: 0; font-weight: 400; display: grid; gap: 10px; max-width: 34ch; }
.hero__strong {
  font-size: clamp(28px, 8.6vw, 40px); line-height: 1.12; font-weight: 500; letter-spacing: -.015em;
  color: var(--text);
}
.hero__strong em { font-style: normal; font-weight: 800; color: var(--accent); }
/* quebra fixa: "Declare seu apoio" / "à Andréa Castro." — a 2ª linha não pode partir */
.hero__strong { text-wrap: nowrap; white-space: nowrap; }
.hero__sub { font-size: 17px; line-height: 1.45; color: var(--text-muted); font-weight: 500; }

/* ---------- estúdio ---------- */
.studio {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 16px 0;
  display: grid;
  gap: 16px;
}

/* prévia */
.preview { position: relative; }
.preview__frame {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #D9E7FB;
  box-shadow: var(--shadow-pop);
  touch-action: pan-y;            /* v1: o dedo rola a página; segurar para mover a foto */
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.preview__frame.is-dragging { box-shadow: var(--shadow-pop), 0 0 0 3px rgba(107, 29, 232, .55); transform: scale(1.01); }
.preview__frame canvas {
  width: 100%; height: 100%;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.preview__frame.is-dragging canvas { cursor: grabbing; }
.preview__skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, #D9E7FB 30%, #EEF4FD 50%, #D9E7FB 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
  transition: opacity .3s;
}
.preview__skeleton.is-hidden { opacity: 0; pointer-events: none; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* scanner enquanto o fundo está sendo recortado: traço fino roxo que desce e sobe, como scan de filme.
   Sem box-shadow (ele termina reto nas pontas): o brilho é feito com gradientes horizontais
   que somem nas duas extremidades, por isso as pontas apagam suavemente. */
.preview__scan { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.preview__scan i {
  position: absolute; left: 4%; right: 4%; top: 2%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%, rgba(233, 221, 255, .95) 10%, #FFFFFF 50%, rgba(233, 221, 255, .95) 90%, rgba(255, 255, 255, 0) 100%);
  animation: scan 1.5s linear infinite alternate;
  will-change: top;
}
/* brilho roxo colado na linha */
.preview__scan i::before {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 12px;
  background: linear-gradient(90deg,
    rgba(107, 29, 232, 0) 0%, rgba(107, 29, 232, .6) 12%, rgba(107, 29, 232, .95) 50%, rgba(107, 29, 232, .6) 88%, rgba(107, 29, 232, 0) 100%);
  filter: blur(3px);
}
/* faixa larga e discreta, para dar a sensação de leitura */
.preview__scan i::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: -20px; height: 42px;
  background:
    linear-gradient(90deg, rgba(107, 29, 232, 0) 0%, rgba(107, 29, 232, 1) 18%, rgba(107, 29, 232, 1) 82%, rgba(107, 29, 232, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 50%, transparent 100%);
  opacity: .16;
}
@keyframes scan { from { top: 2%; } to { top: 97%; } }
/* aviso "não travou" sobre a prévia enquanto a IA trabalha */
.preview__working {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  margin: 0; width: max-content; max-width: calc(100% - 20px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: rgba(20, 12, 52, .78); color: #fff;
  font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: left;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  animation: fadeUp .4s var(--ease) both;
}
.preview__working .spin {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--amarelo);
  animation: spin .9s linear infinite;
}
.hint-v2 { display: none; }
body.v2 .hint-v1 { display: none; }
body.v2 .hint-v2 { display: inline; }
.preview__hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(20, 12, 52, .72);
  color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  animation: fadeUp .5s var(--ease) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.seg--formats { width: min(100%, 420px); margin: 0 auto 12px; }
@media (min-width: 900px) { .seg--formats { width: min(100%, 520px); margin: 0 0 12px auto; } }

/* passos */
.steps { display: grid; gap: 14px; }
.step {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
  animation: cardIn .6s var(--ease) both;
}
.step:nth-child(2) { animation-delay: .06s; }
.step:nth-child(3) { animation-delay: .12s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sticker {
  font-family: var(--font-display);
  font-size: 24px; line-height: 1;
  color: var(--roxo);
  background: var(--gelo);
  min-width: 34px; height: 34px;
  display: grid; place-items: center;
  padding: 3px 9px 0;
  transform: rotate(-4deg);
  box-shadow: 0 2px 0 rgba(62, 14, 147, .18);
}
.step__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px; line-height: 1; letter-spacing: .01em;
  color: var(--text);
}

/* foto */
.photo__ready { display: none; }
.photo[data-state="processing"] .photo__idle,
.photo[data-state="ready"] .photo__idle,
.photo[data-state="error"] .photo__idle { display: none; }
.photo[data-state="processing"] .photo__ready,
.photo[data-state="ready"] .photo__ready,
.photo[data-state="error"] .photo__ready { display: block; }

.drop {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform .12s;
}
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop:active { transform: scale(.99); }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop__icon {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text);
  border-radius: 16px;
  font-size: 26px;
}
.drop__text { display: grid; gap: 2px; }
.drop__text strong { font-size: 18px; font-weight: 800; }
.drop__text span { color: var(--text-muted); font-size: 14px; }

.guide {
  margin: 14px 0 0;
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start;
  padding: 12px;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
}
.guide img { width: 92px; height: 115px; object-fit: cover; border-radius: 10px; }
.guide figcaption { font-size: 14px; color: var(--text-muted); }
.guide strong { display: block; color: var(--text); font-weight: 800; margin-bottom: 4px; }
.guide ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide li { display: flex; align-items: center; gap: 6px; }
.guide li .ic { color: var(--ok); }
.guide p { margin: 6px 0 0; }

.photo__row { display: flex; gap: 14px; align-items: center; }
.thumb {
  position: relative; flex: none;
  width: 84px; height: 105px;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #BED9FA, #EAF2FC);
  box-shadow: inset 0 0 0 1px rgba(62, 14, 147, .08);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.thumb.is-busy img { opacity: .55; filter: saturate(.6); }
.thumb__ring {
  position: absolute; inset: 0; display: none; place-items: center;
}
.thumb.is-busy .thumb__ring { display: grid; }
.thumb__ring::after {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .75); border-top-color: var(--roxo);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.photo__info { flex: 1; min-width: 0; }
.photo__status { margin: 0; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.photo__status .ic { color: var(--ok); }
.photo__status.is-error .ic { color: var(--err); }
.bar {
  height: 8px; margin: 8px 0 6px;
  background: var(--line);
  border-radius: 999px; overflow: hidden;
}
.bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--roxo), var(--rosa));
  border-radius: 999px;
  transition: width .35s var(--ease);
}
.bar.is-indeterminate i { width: 40%; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
.photo[data-state="ready"] .bar, .photo[data-state="error"] .bar { display: none; }
.photo__hint { margin: 0; font-size: 13px; color: var(--text-muted); }

.photo__controls { margin-top: 14px; display: grid; gap: 10px; }
.photo__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* segmentado */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
}
.seg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 6px 10px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--text-muted);
  font-weight: 700; font-size: 14px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform .12s;
}
.seg__btn:active { transform: scale(.98); }
.seg__btn.is-active { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 14px -8px rgba(62, 14, 147, .6); }
.seg__btn:disabled { opacity: .45; cursor: not-allowed; }
.seg__btn:disabled.is-active { opacity: .6; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0; border: 0; background: none;
  color: var(--accent-soft-text); font-weight: 800; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent;
  transition: text-decoration-color var(--dur);
}
.link:hover { text-decoration-color: currentColor; }

/* campo */
.field { display: grid; gap: 6px; }
.field__label { font-weight: 800; font-size: 14px; }
.field__input {
  width: 100%;
  min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--surface);
  font-size: 18px; font-weight: 700;
  text-transform: uppercase;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field__input::placeholder { color: var(--text-faint); font-weight: 600; text-transform: none; }
.field__input:focus { border-color: var(--accent); box-shadow: var(--focus); outline: none; }
.field__help { font-size: 13px; color: var(--text-muted); }
.seg--soft { margin-top: 12px; }

/* ajustes */
.adjust { display: grid; gap: 16px; }
.adjust__group { display: grid; gap: 8px; }
.adjust__group--row { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.adjust__label { font-weight: 800; font-size: 14px; }
.adjust__hint { margin: 0; font-size: 13px; color: var(--text-muted); }

.zoom { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; }
.iconbtn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--text);
  font-size: 18px;
  transition: transform .12s, background var(--dur);
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn:active { transform: scale(.95); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: transparent; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--surface);
  box-shadow: 0 4px 12px -4px rgba(62, 14, 147, .7);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--surface);
  box-shadow: 0 4px 12px -4px rgba(62, 14, 147, .7);
}

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--text);
  font-weight: 700; font-size: 14px;
  transition: transform .12s, background var(--dur), border-color var(--dur), color var(--dur);
}
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(.98); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-text); }

/* ações */
.actions {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 18px;
  border-radius: var(--r-ctl); border: 0;
  font-weight: 800; font-size: 16px; white-space: nowrap;
  transition: transform .12s, background var(--dur), box-shadow var(--dur);
}
.btn .ic { font-size: 20px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: var(--roxo); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(107, 29, 232, .75);
}
.btn--primary:hover { background: var(--roxo-escuro); }
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn.is-busy { pointer-events: none; opacity: .7; }

/* barra fixa no celular */
@media (max-width: 899px) {
  .trust, .footer { padding-right: 104px; }
  .actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + var(--safe-b));
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -20px rgba(62, 14, 147, .35);
  }
}

/* confiança */
.trust {
  max-width: 1200px; margin: 22px auto 0;
  padding: 0 20px;
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--text-muted); font-size: 14px;
}
.trust .ic { color: var(--ok); font-size: 20px; margin-top: 1px; }
.trust p { margin: 0; }
.trust strong { color: var(--text); }

/* rodapé */
.footer {
  max-width: 1200px; margin: 28px auto 0;
  padding: 0 20px 12px;
  display: grid; gap: 10px;
}
.link--invite { font-size: 15px; }
.footer__legal a { color: inherit; text-underline-offset: 2px; }
.footer__legal {
  margin: 0; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-faint);
}

/* mini prévia */
.mini {
  position: fixed; right: 12px; bottom: calc(92px + var(--safe-b)); z-index: 39;
  width: 74px; padding: 0; border: 0;
  border-radius: 12px; overflow: hidden;
  background: #D9E7FB;
  box-shadow: var(--shadow-pop), 0 0 0 3px var(--surface);
  transform-origin: bottom right;
  animation: popIn .35s var(--ease) both;
}
.mini canvas { width: 100%; height: auto; }
.mini:active { transform: scale(.96); }
@keyframes popIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(104px + var(--safe-b)); z-index: 60;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 440px);
  padding: 12px 16px;
  background: #1C1736; color: #fff;
  border-radius: var(--r-ctl);
  font-size: 14px; font-weight: 700; line-height: 1.35;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
  display: flex; gap: 10px; align-items: flex-start;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { font-size: 18px; flex: none; margin-top: 1px; }
.toast--ok .ic { color: #7DE2B5; }
.toast--warn .ic { color: var(--amarelo); }
.toast--err .ic { color: #FF8DA8; }

.noscript {
  margin: 20px; padding: 16px; border-radius: var(--r-ctl);
  background: var(--warn-soft); color: var(--text); font-weight: 700;
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 40px; }
  .hero { grid-area: hero; padding: 28px 0 6px; }
  .hero__strong { font-size: 48px; }
  .hero__sub { font-size: 19px; }

  .studio {
    padding: 12px 32px 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "hero preview" "steps preview";
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0 32px;
  }
  .preview { grid-area: preview; position: sticky; top: 24px; align-self: start; }
  .preview__frame { width: min(100%, 520px); margin: 0 0 0 auto; }
  .steps { grid-area: steps; gap: 18px; margin-top: 18px; }
  .step { padding: 22px 24px 24px; }
  .actions { margin-top: 6px; }
  .mini { display: none !important; }
  .toast { bottom: 32px; }
}

@media (min-width: 1100px) {
  .studio { grid-template-columns: 520px minmax(0, 1fr); }
  .preview__frame { width: min(100%, 560px); }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .preview__skeleton { animation: none; }
  .bar.is-indeterminate i { animation: none; width: 60%; }
}
