/* ==========================================================================
   PlayLink — gerador de links (capa)
   ========================================================================== */

.studio {
  --studio-bg: #f6f7f9;
  --studio-bg-2: #ffffff;
  --studio-surface: rgba(255, 255, 255, 0.78);
  --studio-solid: #ffffff;
  --studio-ink: #101318;
  --studio-muted: #5c6472;
  --studio-line: rgba(16, 19, 24, 0.09);
  --studio-line-strong: rgba(16, 19, 24, 0.16);
  --studio-accent: #01875f;
  --studio-accent-ink: #ffffff;
  --studio-accent-soft: rgba(1, 135, 95, 0.09);
  --studio-header-bg: rgba(246, 247, 249, 0.72);
  --studio-shadow: 0 24px 70px rgba(20, 24, 31, 0.11), 0 2px 8px rgba(20, 24, 31, 0.04);
  --studio-card-shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 8px 24px rgba(20, 24, 31, 0.05);
  --studio-code: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  margin: 0;
  background: var(--studio-bg);
  color: var(--studio-ink);
  font-family: "Manrope", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[data-theme="dark"] .studio {
  --studio-bg: #0b0d10;
  --studio-bg-2: #12151a;
  --studio-surface: rgba(20, 23, 28, 0.72);
  --studio-solid: #15181d;
  --studio-ink: #eef1f5;
  --studio-muted: #98a0ac;
  --studio-line: rgba(255, 255, 255, 0.085);
  --studio-line-strong: rgba(255, 255, 255, 0.16);
  --studio-accent: #6dd58c;
  --studio-accent-ink: #072100;
  --studio-accent-soft: rgba(109, 213, 140, 0.1);
  --studio-header-bg: rgba(11, 13, 16, 0.72);
  --studio-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.25);
  --studio-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.18);
}

.studio ::selection {
  background: rgba(1, 135, 95, 0.18);
}

/* Barra superior --------------------------------------------------------- */

.studio-header {
  background: var(--studio-header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
}

.studio-header.is-scrolled {
  border-bottom-color: var(--studio-line);
  box-shadow: 0 1px 0 rgba(16, 19, 24, 0.02);
}

.studio-header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 64px;
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--studio-ink);
  text-decoration: none;
  border-radius: 10px;
}

.studio-brand__mark {
  width: 21px;
  height: 24px;
  flex: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.studio-brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.65px;
  line-height: 1;
}

.studio-brand__name::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 3px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--studio-accent);
}

.studio-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 6px;
}

.studio-nav a {
  color: var(--studio-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.05px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.studio-nav a:hover {
  color: var(--studio-ink);
}

.studio-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.studio .icon-btn {
  color: var(--studio-muted);
}

.studio .icon-btn:hover {
  background: var(--studio-line);
  color: var(--studio-ink);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 70px 24px 48px;
  overflow: hidden;
}

.aurora {
  position: absolute;
  inset: -10% -5% 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.5;
  will-change: transform;
}

.aurora__blob--blue {
  top: -8%;
  left: 2%;
  width: 460px;
  height: 460px;
  background: #4285f4;
  opacity: 0.16;
  animation: aurora-a 18s ease-in-out infinite alternate;
}

.aurora__blob--green {
  top: 18%;
  right: 0;
  width: 420px;
  height: 420px;
  background: #34a853;
  opacity: 0.15;
  animation: aurora-b 22s ease-in-out infinite alternate;
}

.aurora__blob--yellow {
  bottom: -22%;
  left: 34%;
  width: 380px;
  height: 380px;
  background: #fbbc04;
  opacity: 0.13;
  animation: aurora-c 20s ease-in-out infinite alternate;
}

.aurora__blob--red {
  top: 46%;
  left: -8%;
  width: 300px;
  height: 300px;
  background: #ea4335;
  opacity: 0.1;
  animation: aurora-b 24s ease-in-out infinite alternate-reverse;
}

[data-theme="dark"] .aurora__blob--blue {
  opacity: 0.2;
}

[data-theme="dark"] .aurora__blob--green {
  opacity: 0.16;
}

[data-theme="dark"] .aurora__blob--yellow {
  opacity: 0.1;
}

[data-theme="dark"] .aurora__blob--red {
  opacity: 0.12;
}

.grid-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(16, 19, 24, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  opacity: 0.4;
}

[data-theme="dark"] .grid-texture {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--studio-bg));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.hero__copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  background: var(--studio-surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.eyebrow .icon {
  width: 14px;
  height: 14px;
  color: #f9a825;
}

.eyebrow--plain {
  padding: 0;
  border: 0;
  background: none;
  color: var(--studio-accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__title {
  margin: 20px 0 0;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--studio-ink);
  text-wrap: balance;
}

.gradient-text {
  display: inline;
  background: linear-gradient(100deg, #1a73e8 0%, #00a870 38%, #f9ab00 72%, #ea4335 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 9s ease-in-out infinite;
}

[data-theme="dark"] .gradient-text {
  background-image: linear-gradient(100deg, #8ab4f8 0%, #6dd58c 38%, #fdd663 72%, #f28b82 100%);
}

.hero__subtitle {
  max-width: 540px;
  margin: 20px 0 0;
  color: var(--studio-muted);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* Formulário ------------------------------------------------------------- */

.link-form {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--studio-line);
  border-radius: 24px;
  background: var(--studio-surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--studio-card-shadow);
}

.link-form__label {
  display: block;
  margin: 0 0 8px;
  color: var(--studio-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.link-form__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 8px 0 14px;
  border: 1.5px solid var(--studio-line-strong);
  border-radius: 14px;
  background: var(--studio-bg-2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-form__field:focus-within {
  border-color: var(--studio-accent);
  box-shadow: 0 0 0 4px var(--studio-accent-soft);
}

.link-form__field.is-invalid {
  border-color: #d93025;
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.09);
}

.link-form__icon {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--studio-muted);
}

.link-form__field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--studio-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.link-form__field input::placeholder {
  color: var(--studio-muted);
  opacity: 0.7;
  font-weight: 400;
}

.paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  flex: none;
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  background: transparent;
  color: var(--studio-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.paste-btn .icon {
  width: 13px;
  height: 13px;
}

.paste-btn:hover {
  border-color: var(--studio-line-strong);
  background: var(--studio-line);
  color: var(--studio-ink);
}

.link-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
}

.link-form__hint {
  margin: 0;
  color: var(--studio-muted);
  font-size: 11px;
  line-height: 1.5;
}

.link-form__hint code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--studio-line);
  font-family: var(--studio-code);
  font-size: 10.5px;
  color: var(--studio-ink);
}

/* APK base --------------------------------------------------------------- */

.apk-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1.5px dashed var(--studio-line-strong);
  border-radius: 12px;
  background: var(--studio-bg-2);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.apk-picker:hover {
  border-color: var(--studio-accent);
  background: var(--studio-accent-soft);
}

.apk-picker.has-file {
  border-style: solid;
  border-color: rgba(1, 135, 95, 0.32);
  background: var(--studio-accent-soft);
}

[data-theme="dark"] .apk-picker.has-file {
  border-color: rgba(109, 213, 140, 0.3);
}

.apk-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.apk-picker__icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 9px;
  background: var(--studio-line);
  color: var(--studio-muted);
}

.apk-picker__icon .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.apk-picker.has-file .apk-picker__icon {
  background: rgba(1, 135, 95, 0.12);
  color: var(--studio-accent);
}

.apk-picker__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
}

.apk-picker__text strong {
  overflow: hidden;
  color: var(--studio-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apk-picker__text span {
  overflow: hidden;
  color: var(--studio-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apk-picker__button {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: var(--studio-solid);
  color: var(--studio-muted);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.apk-picker:hover .apk-picker__button {
  border-color: var(--studio-accent);
  color: var(--studio-accent);
}

.apk-picker--compact {
  margin-top: 10px;
}

.result__apk {
  margin: 8px 0 0;
  color: var(--studio-accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.result__apk[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .apk-picker {
    flex-wrap: wrap;
    padding: 10px;
  }

  .apk-picker__button {
    width: 100%;
    padding: 7px 10px;
    text-align: center;
  }
}

.generate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  padding: 0 22px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #01875f, #00a870);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(1, 135, 95, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .generate-btn {
  background: linear-gradient(135deg, #6dd58c, #8be8ab);
  color: #072100;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(1, 135, 95, 0.28);
  filter: brightness(1.03);
}

.generate-btn:active {
  transform: scale(0.985);
}

.generate-btn:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.generate-btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.generate-btn:hover .generate-btn__arrow {
  transform: translateX(2px);
}

.generate-btn.is-loading .generate-btn__arrow {
  display: none;
}

.generate-btn.is-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.form-error {
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(217, 48, 37, 0.22);
  border-radius: 10px;
  background: rgba(217, 48, 37, 0.07);
  color: #b3261e;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}

[data-theme="dark"] .form-error {
  border-color: rgba(242, 139, 130, 0.25);
  background: rgba(242, 139, 130, 0.08);
  color: #f28b82;
}

.form-error[hidden] {
  display: none;
}

.examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  color: var(--studio-muted);
  font-size: 11px;
  font-weight: 600;
}

.example-chip {
  height: 27px;
  padding: 0 11px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  background: transparent;
  color: var(--studio-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.example-chip:hover {
  border-color: var(--studio-accent);
  background: var(--studio-accent-soft);
  color: var(--studio-accent);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero__points .icon {
  width: 14px;
  height: 14px;
  color: var(--studio-accent);
}

/* Arte do hero ----------------------------------------------------------- */

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.art-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #4285f4, #34a853, #fbbc04, #ea4335, #4285f4);
  filter: blur(58px);
  opacity: 0.16;
  animation: aurora-a 16s ease-in-out infinite alternate;
}

.art-card {
  position: relative;
  z-index: 1;
  width: min(100%, 376px);
  padding: 18px;
  border: 1px solid var(--studio-line);
  border-radius: 28px;
  background: var(--studio-solid);
  box-shadow: var(--studio-shadow);
  transform: rotate(-2deg);
  animation: card-float 9s ease-in-out infinite alternate;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.hero__art:hover .art-card {
  transform: rotate(0deg) translateY(-4px);
}

.art-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.art-appicon {
  display: block;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.art-appicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-appinfo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.art-appinfo strong {
  overflow: hidden;
  color: var(--studio-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-appinfo span {
  overflow: hidden;
  color: var(--studio-muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  flex: none;
  border: 1px solid var(--studio-line);
  border-radius: 50%;
  color: var(--studio-muted);
}

.art-arrow .icon {
  width: 14px;
  height: 14px;
}

.art-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  height: 188px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 12px;
}

.art-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
}

.art-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: var(--studio-bg);
  color: var(--studio-ink);
  font-family: var(--studio-code);
  font-size: 10.5px;
  letter-spacing: -0.02em;
}

.art-link .icon {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--studio-muted);
}

.art-link__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--studio-accent);
  box-shadow: 0 0 0 3px var(--studio-accent-soft);
}

.art-badge,
.art-timer {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  background: var(--studio-solid);
  box-shadow: var(--studio-card-shadow);
  color: var(--studio-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.art-badge {
  top: 24px;
  right: 0;
  animation: card-float 7s ease-in-out infinite alternate;
}

.art-badge .icon {
  width: 15px;
  height: 15px;
  color: var(--studio-accent);
}

.art-timer {
  bottom: 30px;
  left: 0;
  transform: rotate(2deg);
  color: var(--studio-muted);
  animation: card-float 8s ease-in-out 1s infinite alternate-reverse;
}

.art-timer .icon {
  width: 14px;
  height: 14px;
  color: #f9a825;
}

/* Resultado -------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.result {
  position: relative;
  scroll-margin-top: 84px;
  margin-top: 12px;
  padding: 24px;
  border: 1px solid var(--studio-line);
  border-radius: 28px;
  background: var(--studio-surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--studio-shadow);
  animation: fade-up 0.45s cubic-bezier(0.2, 0, 0, 1) both;
}

.result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #4285f4, #34a853, #fbbc04, #ea4335);
}

.result[hidden] {
  display: none;
}

.result__success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.result__check {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--studio-accent-soft);
  color: var(--studio-accent);
}

.result__check .icon {
  width: 22px;
  height: 22px;
}

.result__success h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.result__success p {
  margin: 2px 0 0;
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
}

.result__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--studio-line);
}

.result__app {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.result__app img {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.result__appinfo {
  min-width: 0;
}

.result__appinfo h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.result__appinfo p {
  margin: 2px 0 0;
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.result__meta {
  font-weight: 700 !important;
}

.result__label {
  display: block;
  margin-bottom: 7px;
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.copybox {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 6px 0 12px;
  border: 1.5px solid var(--studio-line-strong);
  border-radius: 12px;
  background: var(--studio-bg-2);
}

.copybox__icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--studio-muted);
}

.copybox input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--studio-ink);
  font-family: var(--studio-code);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 13px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: var(--studio-ink);
  color: var(--studio-bg);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.12s ease;
}

.copy-btn:hover {
  filter: brightness(1.1);
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn .icon {
  width: 13px;
  height: 13px;
}

.copy-btn.is-copied {
  background: var(--studio-accent);
  color: var(--studio-accent-ink);
}

.result__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.result__official {
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result__official a {
  color: var(--studio-muted);
  font-family: var(--studio-code);
  font-size: 10px;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: var(--studio-line-strong);
  text-underline-offset: 2px;
}

.result__official a:hover {
  color: var(--studio-ink);
}

.studio .btn-primary,
.studio .btn-secondary {
  min-height: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.studio .btn-primary {
  background: var(--studio-accent);
  color: var(--studio-accent-ink);
}

.studio .btn-secondary {
  border-color: var(--studio-line-strong);
  background: transparent;
  color: var(--studio-ink);
}

.studio .btn-secondary:hover {
  border-color: var(--studio-ink);
  background: var(--studio-line);
}

.studio .btn-primary .icon,
.studio .btn-secondary .icon {
  width: 14px;
  height: 14px;
}

/* Links recentes --------------------------------------------------------- */

.recent {
  margin-top: 40px;
  scroll-margin-top: 90px;
}

.recent[hidden] {
  display: none;
}

.recent__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.recent__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.recent__head p {
  margin: 3px 0 0;
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.text-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--studio-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease;
}

.text-btn:hover {
  color: var(--studio-ink);
}

.recent__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.recent-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--studio-line);
  border-radius: 15px;
  background: var(--studio-surface);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.recent-card:hover {
  transform: translateY(-1px);
  border-color: var(--studio-line-strong);
  box-shadow: var(--studio-card-shadow);
}

.recent-card img {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}

.recent-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
}

.recent-card__title {
  overflow: hidden;
  color: var(--studio-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-card__title:hover {
  text-decoration: underline;
}

.recent-card__meta {
  overflow: hidden;
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-card__link {
  overflow: hidden;
  color: var(--studio-muted);
  font-family: var(--studio-code);
  font-size: 9.5px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-card__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.mini-action {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--studio-muted);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.mini-action:hover {
  background: var(--studio-line);
  color: var(--studio-ink);
}

.mini-action .icon {
  width: 15px;
  height: 15px;
}

/* Como funciona ---------------------------------------------------------- */

.how {
  margin-top: 68px;
  scroll-margin-top: 90px;
}

.how__head {
  max-width: 640px;
}

.how__eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.how__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(1, 135, 95, 0.18);
  border-radius: 999px;
  background: rgba(1, 135, 95, 0.07);
  color: var(--studio-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.how__badge .icon {
  width: 11px;
  height: 11px;
}

.how__head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.how__head p {
  margin: 10px 0 0;
  color: var(--studio-muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.steps::before {
  position: absolute;
  top: 45px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--studio-line-strong) 18%, var(--studio-line-strong) 82%, transparent);
  content: "";
  pointer-events: none;
}

.step {
  --step-color: #1a73e8;
  --step-soft: rgba(66, 133, 244, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--studio-line);
  border-radius: 20px;
  background: var(--studio-surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--step-color), transparent 72%);
  opacity: 0.6;
  content: "";
}

.step:hover {
  transform: translateY(-2px);
  border-color: var(--studio-line-strong);
  box-shadow: var(--studio-card-shadow);
}

.step--blue {
  --step-color: #1a73e8;
  --step-soft: rgba(66, 133, 244, 0.1);
}

.step--green {
  --step-color: #01875f;
  --step-soft: rgba(52, 168, 83, 0.1);
}

.step--gold {
  --step-color: #b06000;
  --step-soft: rgba(249, 171, 0, 0.13);
}

[data-theme="dark"] .step--blue {
  --step-color: #8ab4f8;
  --step-soft: rgba(138, 180, 248, 0.1);
}

[data-theme="dark"] .step--green {
  --step-color: #6dd58c;
  --step-soft: rgba(109, 213, 140, 0.1);
}

[data-theme="dark"] .step--gold {
  --step-color: #fdd663;
  --step-soft: rgba(253, 214, 99, 0.1);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--step-soft);
  color: var(--step-color);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.step__tag {
  color: var(--studio-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.step__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 16px;
  border-radius: 14px;
  background: var(--step-soft);
  color: var(--step-color);
}

.step__icon .icon {
  width: 20px;
  height: 20px;
}

.step__icon--blue {
  background: rgba(66, 133, 244, 0.1);
  color: #1a73e8;
}

.step__icon--green {
  background: rgba(52, 168, 83, 0.1);
  color: #01875f;
}

.step__icon--gold {
  background: rgba(249, 171, 0, 0.13);
  color: #b06000;
}

[data-theme="dark"] .step__icon--blue {
  color: #8ab4f8;
}

[data-theme="dark"] .step__icon--green {
  color: #6dd58c;
}

[data-theme="dark"] .step__icon--gold {
  color: #fdd663;
}

.step h3 {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.step p {
  margin: 6px 0 0;
  color: var(--studio-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
}

.step__hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--studio-line);
  color: var(--studio-muted);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
}

.step__hint .icon {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--step-color);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(1, 135, 95, 0.16);
  border-radius: 16px;
  background: var(--studio-accent-soft);
}

[data-theme="dark"] .note {
  border-color: rgba(109, 213, 140, 0.18);
}

.note__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--studio-solid);
  color: var(--studio-accent);
}

.note__icon .icon {
  width: 17px;
  height: 17px;
}

.note strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.note p {
  margin: 2px 0 0;
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
}

/* Rodapé ----------------------------------------------------------------- */

.studio-footer {
  margin-top: 76px;
  border-top: 1px solid var(--studio-line);
  padding: 28px 0 34px;
}

.studio-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 24px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.studio-brand--footer {
  cursor: default;
}

.studio-brand--footer .studio-brand__name {
  font-size: 15px;
}

.studio-footer__brand p {
  margin: 4px 0 0;
  color: var(--studio-muted);
  font-size: 11px;
  font-weight: 500;
}

.studio-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.studio-footer__links a {
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.studio-footer__links a:hover {
  color: var(--studio-ink);
}

.studio-footer__legal {
  grid-column: 1 / -1;
  max-width: 780px;
  margin: 6px 0 0;
  color: var(--studio-muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.65;
}

/* Menu do usuário -------------------------------------------------------- */

.user-menu {
  position: relative;
  flex: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--studio-ink);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
  border-color: var(--studio-line);
  background: var(--studio-line);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853 62%, #fbbc04);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.user-chip__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 120px;
  line-height: 1.15;
}

.user-chip__text strong {
  overflow: hidden;
  max-width: 120px;
  color: var(--studio-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip__text span {
  color: var(--studio-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.user-chip__chevron {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--studio-muted);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 232px;
  padding: 6px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: var(--studio-solid);
  box-shadow: var(--studio-shadow);
  animation: fade-up 0.18s ease both;
}

.user-dropdown[hidden] {
  display: none;
}

.user-dropdown__head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 4px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--studio-line);
}

.user-dropdown__head strong {
  font-size: 11.5px;
  font-weight: 800;
}

.user-dropdown__head span {
  overflow: hidden;
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--studio-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--studio-line);
}

.user-dropdown .icon {
  width: 15px;
  height: 15px;
  color: var(--studio-muted);
}

.user-dropdown button {
  color: #c5221f;
}

.user-dropdown button .icon {
  color: inherit;
}

[data-theme="dark"] .user-dropdown button {
  color: #f28b82;
}

@media (max-width: 720px) {
  .user-chip__text {
    display: none;
  }

  .user-chip {
    padding: 0 5px;
  }
}

/* Toast ------------------------------------------------------------------ */

.studio .toast {
  bottom: 24px;
  background: #101318;
  color: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
}

[data-theme="dark"] .studio .toast {
  background: #eef1f5;
  color: #101318;
}

/* Animações -------------------------------------------------------------- */

@keyframes card-float {
  from {
    translate: 0 -5px;
  }
  to {
    translate: 0 5px;
  }
}

@keyframes aurora-a {
  from {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes aurora-b {
  from {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }
  to {
    transform: translate3d(-3%, -3%, 0) scale(0.96);
  }
}

@keyframes aurora-c {
  from {
    transform: translate3d(0, 2%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -4%, 0) scale(1.1);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsivo ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero__copy {
    max-width: 780px;
  }

  .hero__art {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero__title {
    max-width: 820px;
  }
}

@media (max-width: 760px) {
  .studio-header__inner {
    gap: 14px;
    padding-inline: 16px;
  }

  .studio-nav {
    gap: 14px;
  }

  .hero {
    padding: 38px 16px 34px;
  }

  .hero__title {
    margin-top: 16px;
    font-size: clamp(34px, 9vw, 44px);
    letter-spacing: -0.04em;
  }

  .hero__subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .link-form {
    padding: 16px;
    border-radius: 20px;
  }

  .link-form__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .generate-btn {
    width: 100%;
  }

  .container {
    padding-inline: 16px;
  }

  .result {
    padding: 18px;
    border-radius: 22px;
  }

  .result__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .result__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .studio .btn-primary,
  .studio .btn-secondary {
    width: 100%;
  }

  .recent__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps::before {
    display: none;
  }

  .how {
    margin-top: 52px;
  }

  .studio-footer {
    margin-top: 56px;
  }

  .studio-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 16px;
  }

  .studio-footer__links {
    gap: 14px;
  }

  .studio-footer__legal {
    margin-top: 2px;
  }
}

@media (max-width: 520px) {
  .studio-nav a[href="#como-funciona"] {
    display: none;
  }

  .studio-brand__name {
    font-size: 17px;
  }

  .hero__points {
    gap: 9px 14px;
  }

  .hero__points li:nth-child(3) {
    display: none;
  }

  .link-form__label {
    font-size: 10px;
  }

  .link-form__field {
    height: 54px;
    padding-left: 12px;
  }

  .link-form__field input {
    font-size: 12.5px;
  }

  .paste-btn {
    height: 34px;
    padding-inline: 9px;
    font-size: 10.5px;
  }

  .examples {
    gap: 6px;
  }

  .example-chip {
    height: 25px;
    padding-inline: 9px;
    font-size: 10.5px;
  }

  .copybox {
    height: 50px;
  }

  .copybox input {
    font-size: 10.5px;
  }

  .copy-btn span {
    display: none;
  }

  .copy-btn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .result__success h2 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text,
  .art-card,
  .art-badge,
  .art-timer,
  .aurora__blob,
  .art-glow {
    animation: none !important;
  }
}
